﻿/* =========================================================
   MOB365 ERP LOGIN
   File: wwwroot/css/login.css
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

.mob-login-page {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    background: radial-gradient( circle at 10% 10%, rgba(0, 120, 212, 0.17), transparent 32% ), radial-gradient( circle at 90% 90%, rgba(14, 165, 233, 0.13), transparent 35% ), linear-gradient( 135deg, #eef4fb 0%, #f8fafc 48%, #e9f1fa 100% );
    color: #142033;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.mob-login-wrapper {
    width: min(1120px, 100%);
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(188, 203, 222, 0.7);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 35px 90px rgba(31, 54, 85, 0.17), 0 8px 25px rgba(31, 54, 85, 0.08);
    backdrop-filter: blur(16px);
}

/* =========================================================
   LEFT PRESENTATION PANEL
   ========================================================= */

.mob-login-presentation {
    position: relative;
    display: flex;
    align-items: center;
    padding: 70px 64px;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient( circle at 80% 15%, rgba(56, 189, 248, 0.36), transparent 27% ), radial-gradient( circle at 15% 90%, rgba(14, 165, 233, 0.28), transparent 36% ), linear-gradient( 145deg, #071d36 0%, #073d68 48%, #0067a8 100% );
}

    .mob-login-presentation::before {
        content: "";
        position: absolute;
        width: 380px;
        height: 380px;
        top: -190px;
        right: -150px;
        border: 1px solid rgba(255, 255, 255, 0.13);
        border-radius: 50%;
    }

    .mob-login-presentation::after {
        content: "";
        position: absolute;
        width: 460px;
        height: 460px;
        left: -240px;
        bottom: -250px;
        border: 1px solid rgba(255, 255, 255, 0.11);
        border-radius: 50%;
    }

.mob-presentation-content {
    position: relative;
    z-index: 2;
    max-width: 510px;
}

.mob-presentation-logo {
    width: 72px;
    height: 72px;
    margin-bottom: 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
    backdrop-filter: blur(10px);
}

.mob-presentation-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.mob-presentation-content h1 {
    margin: 0;
    max-width: 500px;
    color: #ffffff;
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -1.5px;
}

.mob-presentation-content > p {
    margin: 24px 0 0;
    max-width: 475px;
    color: rgba(235, 246, 255, 0.84);
    font-size: 17px;
    line-height: 1.7;
}

.mob-feature-list {
    margin-top: 38px;
    display: grid;
    gap: 16px;
}

.mob-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 15px;
    font-weight: 600;
}

.mob-feature-icon {
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

/* =========================================================
   LOGIN PANEL
   ========================================================= */

.mob-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 52px 54px;
    background: rgba(255, 255, 255, 0.97);
}

.mob-login-card {
    width: 100%;
    max-width: 420px;
}

.mob-login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 38px;
}

.mob-login-logo {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient( 135deg, #064b7c, #0078d4 );
    box-shadow: 0 13px 25px rgba(0, 103, 184, 0.25);
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
}

.mob-login-brand-text {
    min-width: 0;
}

    .mob-login-brand-text h2 {
        margin: 0;
        color: #10233f;
        font-size: 24px;
        font-weight: 850;
        line-height: 1.15;
        letter-spacing: -0.4px;
    }

    .mob-login-brand-text span {
        display: block;
        margin-top: 4px;
        color: #718096;
        font-size: 12px;
        font-weight: 600;
    }

.mob-login-heading {
    margin-bottom: 29px;
}

    .mob-login-heading h3 {
        margin: 0;
        color: #13243c;
        font-size: 30px;
        font-weight: 850;
        line-height: 1.2;
        letter-spacing: -0.7px;
    }

    .mob-login-heading p {
        margin: 9px 0 0;
        color: #66758b;
        font-size: 14px;
        line-height: 1.55;
    }

.mob-login-form {
    width: 100%;
}

.mob-login-field {
    margin-bottom: 17px;
}

    .mob-login-field label {
        display: block;
        margin-bottom: 7px;
        color: #25364d;
        font-size: 13px;
        font-weight: 750;
    }

.mob-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.mob-input-icon {
    position: absolute;
    z-index: 2;
    left: 14px;
    width: 22px;
    text-align: center;
    font-size: 15px;
    line-height: 1;
    pointer-events: none;
    filter: grayscale(1);
    opacity: 0.65;
}

.mob-input-wrapper input {
    width: 100%;
    height: 50px;
    padding: 0 48px 0 45px;
    border: 1px solid #cbd7e6;
    border-radius: 12px;
    outline: none;
    background: #fbfdff;
    color: #13243c;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

    .mob-input-wrapper input::placeholder {
        color: #98a5b7;
        font-weight: 500;
    }

    .mob-input-wrapper input:hover:not(:disabled) {
        border-color: #aebdd0;
        background: #ffffff;
    }

    .mob-input-wrapper input:focus {
        border-color: #0078d4;
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(0, 120, 212, 0.11), 0 7px 18px rgba(35, 76, 120, 0.06);
    }

    .mob-input-wrapper input:disabled {
        cursor: not-allowed;
        opacity: 0.7;
        background: #f0f3f7;
    }

.mob-password-toggle {
    position: absolute;
    z-index: 3;
    right: 8px;
    height: 34px;
    padding: 0 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #52657e;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: color 0.18s ease, background-color 0.18s ease;
}

    .mob-password-toggle:hover:not(:disabled) {
        background: #edf4fb;
        color: #0067b8;
    }

    .mob-password-toggle:focus-visible {
        outline: 2px solid rgba(0, 120, 212, 0.4);
        outline-offset: 1px;
    }

    .mob-password-toggle:disabled {
        cursor: not-allowed;
        opacity: 0.5;
    }

/* =========================================================
   MESSAGES
   ========================================================= */

.mob-login-message {
    width: 100%;
    margin: 4px 0 16px;
    padding: 12px 13px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}

    .mob-login-message.error {
        border: 1px solid #fecaca;
        background: #fff1f2;
        color: #9f1239;
    }

    .mob-login-message.success {
        border: 1px solid #bbf7d0;
        background: #f0fdf4;
        color: #166534;
    }

.mob-login-message-icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: currentColor;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.mob-login-button {
    width: 100%;
    height: 51px;
    margin-top: 6px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient( 135deg, #0067b8 0%, #0078d4 55%, #1389dd 100% );
    box-shadow: 0 13px 27px rgba(0, 103, 184, 0.23), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

    .mob-login-button:hover:not(:disabled) {
        transform: translateY(-1px);
        filter: brightness(1.035);
        box-shadow: 0 16px 31px rgba(0, 103, 184, 0.29), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    }

    .mob-login-button:active:not(:disabled) {
        transform: translateY(0);
    }

    .mob-login-button:focus-visible {
        outline: 3px solid rgba(0, 120, 212, 0.25);
        outline-offset: 3px;
    }

    .mob-login-button:disabled {
        cursor: not-allowed;
        opacity: 0.72;
        box-shadow: none;
    }

.mob-login-button-arrow {
    font-size: 19px;
    line-height: 1;
}

.mob-login-spinner {
    width: 19px;
    height: 19px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: mob-login-spin 0.75s linear infinite;
}

@keyframes mob-login-spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   APK DOWNLOAD
   ========================================================= */

.mob-login-divider {
    margin: 27px 0 17px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #95a2b3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.9px;
    white-space: nowrap;
}

    .mob-login-divider::before,
    .mob-login-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #e1e8f0;
    }

.mob-download-apk {
    width: 100%;
    min-height: 67px;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #d7e1ed;
    border-radius: 13px;
    background: #f8fbfe;
    color: #1b304a;
    text-decoration: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

    .mob-download-apk:hover {
        border-color: #a9c7e2;
        background: #f1f8fe;
        transform: translateY(-1px);
        box-shadow: 0 9px 22px rgba(26, 68, 105, 0.09);
    }

.mob-download-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #e1f0fc;
    font-size: 20px;
}

.mob-download-text {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
}

    .mob-download-text strong {
        color: #1a324e;
        font-size: 13px;
        font-weight: 800;
    }

    .mob-download-text small {
        margin-top: 3px;
        color: #718198;
        font-size: 11px;
        font-weight: 500;
    }

.mob-download-arrow {
    color: #0078d4;
    font-size: 20px;
    font-weight: 800;
}

.mob-login-security {
    margin-top: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #748399;
    font-size: 11px;
    font-weight: 600;
}

.mob-login-footer {
    margin-top: 18px;
    color: #98a4b4;
    font-size: 10px;
    line-height: 1.45;
    text-align: center;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 920px) {
    .mob-login-page {
        padding: 18px;
        align-items: flex-start;
    }

    .mob-login-wrapper {
        width: min(560px, 100%);
        min-height: auto;
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    .mob-login-presentation {
        min-height: auto;
        padding: 38px 36px;
    }

    .mob-presentation-logo {
        width: 58px;
        height: 58px;
        margin-bottom: 20px;
        border-radius: 16px;
        font-size: 29px;
    }

    .mob-presentation-content h1 {
        font-size: 34px;
    }

    .mob-presentation-content > p {
        margin-top: 16px;
        font-size: 15px;
    }

    .mob-feature-list {
        display: none;
    }

    .mob-login-panel {
        padding: 42px 36px;
    }
}

@media (max-width: 560px) {
    .mob-login-page {
        padding: 0;
        background: #ffffff;
    }

    .mob-login-wrapper {
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .mob-login-presentation {
        padding: 30px 24px;
    }

    .mob-presentation-badge {
        margin-bottom: 13px;
        padding: 6px 9px;
        font-size: 9px;
    }

    .mob-presentation-content h1 {
        max-width: 360px;
        font-size: 29px;
        line-height: 1.12;
        letter-spacing: -0.8px;
    }

    .mob-presentation-content > p {
        display: none;
    }

    .mob-login-panel {
        align-items: flex-start;
        padding: 32px 23px 38px;
    }

    .mob-login-brand {
        margin-bottom: 28px;
    }

    .mob-login-heading h3 {
        font-size: 27px;
    }

    .mob-input-wrapper input {
        height: 49px;
        font-size: 16px;
    }

    .mob-login-button {
        height: 50px;
    }
}

@media (max-width: 360px) {
    .mob-login-presentation {
        padding: 25px 19px;
    }

    .mob-login-panel {
        padding-right: 18px;
        padding-left: 18px;
    }

    .mob-presentation-content h1 {
        font-size: 26px;
    }

    .mob-login-brand-text h2 {
        font-size: 21px;
    }
}

/* Redukton animacionet kur përdoruesi e ka aktivizuar këtë opsion. */
@media (prefers-reduced-motion: reduce) {
    .mob-login-button,
    .mob-download-apk,
    .mob-input-wrapper input {
        transition: none;
    }

    .mob-login-spinner {
        animation-duration: 1.5s;
    }
}
