/* =========================================================
   ZAS LMS LOGIN PAGE
   ========================================================= */

.auth-page {
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7fbfd 100%
        );
}

.zas-auth-section {
    position: relative;
    overflow: hidden;

    min-height: calc(100vh - var(--navbar-height));

    display: flex;
    align-items: center;

    padding: 64px 0 72px;

    background:
        radial-gradient(
            circle at top right,
            rgba(33, 158, 188, 0.11),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            rgba(33, 158, 188, 0.08),
            rgba(74, 194, 223, 0.03)
        );
}

.zas-auth-section::before,
.zas-auth-section::after {
    content: "";

    position: absolute;
    border-radius: 50%;

    background: rgba(33, 158, 188, 0.07);
}

.zas-auth-section::before {
    width: 300px;
    height: 300px;

    top: -120px;
    right: -80px;
}

.zas-auth-section::after {
    width: 190px;
    height: 190px;

    bottom: -70px;
    left: -40px;
}

.zas-auth-grid {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns:
        minmax(0, 0.95fr)
        minmax(420px, 0.75fr);

    align-items: center;
    gap: clamp(3rem, 6vw, 6rem);
}

.zas-auth-intro {
    max-width: 650px;
}

.zas-auth-intro .zas-eyebrow {
    margin-bottom: 1rem;
}

.zas-auth-intro h1 {
    max-width: 620px;

    margin-bottom: 1.35rem;

    font-size: clamp(2.5rem, 4.5vw, 3.55rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.zas-auth-intro > p:not(.zas-eyebrow) {
    max-width: 600px;

    margin-bottom: 2.1rem;

    font-size: 1.05rem;
    line-height: 1.75;
}

.zas-auth-highlights {
    display: grid;
    gap: 1rem;
}

.zas-auth-highlight {
    display: grid;
    grid-template-columns: 48px 1fr;

    align-items: start;
    gap: 0.95rem;

    padding: 0.25rem 0;
}

.zas-auth-highlight > span {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    border-radius: 14px;
    box-shadow: var(--shadow-sm);

    font-size: 0.86rem;
    font-weight: 800;
}

.zas-auth-highlight:nth-child(2) > span {
    background:
        linear-gradient(
            135deg,
            var(--accent),
            #e75f4c
        );
}

.zas-auth-highlight:nth-child(3) > span {
    color: var(--secondary);

    background:
        linear-gradient(
            135deg,
            var(--highlight),
            #f2b931
        );
}

.zas-auth-highlight h2 {
    margin-bottom: 0.25rem;

    font-size: 1.02rem;
    line-height: 1.35;
}

.zas-auth-highlight p {
    margin-bottom: 0;

    font-size: 0.93rem;
    line-height: 1.55;
}

.zas-auth-card {
    width: min(100%, 560px);
    justify-self: end;

    padding: clamp(2rem, 3.5vw, 3rem);

    background: rgba(255, 255, 255, 0.98);

    border: 1px solid rgba(2, 48, 71, 0.08);
    border-radius: 24px;

    box-shadow:
        0 28px 70px rgba(2, 48, 71, 0.15),
        0 8px 20px rgba(2, 48, 71, 0.06);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.zas-auth-card-header {
    margin-bottom: 2rem;
}

.zas-auth-card-header .zas-badge {
    margin-bottom: 0.9rem;
}

.zas-auth-card-header h2 {
    margin-bottom: 0.55rem;

    font-size: clamp(1.8rem, 3vw, 2.15rem);
    line-height: 1.2;
}

.zas-auth-card-header p {
    margin-bottom: 0;

    font-size: 0.98rem;
}

.zas-auth-form {
    display: grid;
    gap: 1.25rem;
}

.zas-form-group {
    display: grid;
    gap: 0.5rem;
}

.zas-form-group label {
    color: var(--secondary);

    font-size: 0.92rem;
    font-weight: 700;
}

.zas-form-group input {
    width: 100%;
    min-height: 56px;

    padding: 0.9rem 1rem;

    color: var(--secondary);
    background: #f8fafb;

    border: 2px solid #e3eaed;
    border-radius: 11px;

    outline: none;

    font-size: 0.97rem;

    transition:
        border-color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

.zas-form-group input::placeholder {
    color: #8a979d;
}

.zas-form-group input:hover {
    border-color: rgba(33, 158, 188, 0.45);
}

.zas-form-group input:focus {
    background: white;
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px
        rgba(33, 158, 188, 0.13);
}

.zas-password-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1rem;
}

.zas-password-label-row a {
    color: var(--primary);

    font-size: 0.86rem;
    font-weight: 700;
}

.zas-password-label-row a:hover {
    color: var(--primary-dark);
}

.zas-password-field {
    position: relative;
}

.zas-password-field input {
    padding-right: 4.8rem;
}

.zas-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.9rem;

    transform: translateY(-50%);

    padding: 0.35rem 0.45rem;

    color: var(--primary-dark);
    background: transparent;

    border: 0;
    border-radius: 6px;

    font-size: 0.82rem;
    font-weight: 800;

    transition: var(--transition);
}

.zas-password-toggle:hover,
.zas-password-toggle:focus-visible {
    color: var(--primary);
    background: rgba(33, 158, 188, 0.08);
}

.zas-checkbox {
    display: inline-flex;
    align-items: center;

    gap: 0.65rem;

    color: var(--text-body);

    font-size: 0.92rem;

    cursor: pointer;
}

.zas-checkbox input {
    width: 18px;
    height: 18px;

    accent-color: var(--primary);
}

.zas-auth-submit {
    width: 100%;
    min-height: 54px;

    margin-top: 0.25rem;

    font-size: 1rem;
    font-weight: 700;
}

.zas-form-error {
    min-height: 1rem;

    color: #b42318;

    font-size: 0.79rem;
}

.zas-form-alert {
    padding: 0.9rem 1rem;

    color: #b42318;
    background: #fff1f0;

    border: 1px solid rgba(180, 35, 24, 0.1);
    border-radius: 10px;

    font-size: 0.88rem;
}

.zas-auth-register {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 0.4rem;

    margin-top: 1.55rem;
    padding-top: 1.35rem;

    border-top: 1px solid #edf1f3;

    font-size: 0.9rem;
}

.zas-auth-register span {
    color: var(--text-muted);
}

.zas-auth-register a {
    color: var(--primary);

    font-weight: 700;
}

.zas-auth-register a:hover {
    color: var(--primary-dark);
}

@media (max-width: 1100px) {
    .zas-auth-grid {
        grid-template-columns:
            minmax(0, 0.9fr)
            minmax(390px, 0.8fr);

        gap: 3rem;
    }

    .zas-auth-intro h1 {
        font-size: 3rem;
    }
}

@media (max-width: 991px) {
    .zas-auth-section {
        padding: 68px 0;
    }

    .zas-auth-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .zas-auth-intro {
        max-width: 760px;
        margin-inline: auto;

        text-align: center;
    }

    .zas-auth-intro > p:not(.zas-eyebrow) {
        margin-inline: auto;
    }

    .zas-auth-highlights {
        max-width: 650px;
        margin-inline: auto;

        text-align: left;
    }

    .zas-auth-card {
        justify-self: center;
    }
}

@media (max-width: 767px) {
    .zas-auth-section {
        min-height: auto;
        padding: 52px 0;
    }

    .zas-auth-intro h1 {
        font-size: 2.35rem;
    }

    .zas-auth-intro > p:not(.zas-eyebrow) {
        font-size: 1rem;
    }

    .zas-auth-card {
        padding: 1.8rem;
        border-radius: 20px;
    }

    .zas-auth-highlight {
        grid-template-columns: 44px 1fr;
    }

    .zas-auth-highlight > span {
        width: 44px;
        height: 44px;

        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .zas-auth-section {
        padding: 38px 0;
    }

    .zas-auth-intro {
        text-align: left;
    }

    .zas-auth-intro h1 {
        font-size: 2rem;
    }

    .zas-auth-highlights {
        gap: 0.85rem;
    }

    .zas-auth-card {
        padding: 1.35rem;
        border-radius: 17px;
    }

    .zas-auth-card-header h2 {
        font-size: 1.65rem;
    }

    .zas-form-group input {
        min-height: 52px;
    }

    .zas-password-label-row {
        align-items: flex-start;
        flex-direction: column;

        gap: 0.25rem;
    }

    .zas-auth-register {
        flex-direction: column;
        align-items: center;

        text-align: center;
    }
}

/* =========================================================
   ZAS LMS NAVBAR
   ========================================================= */

.auth-page {
    --navbar-height: 72px;
}

.auth-page .zas-navbar,
.auth-page .zas-navbar-inner {
    min-height: 72px;
}

.auth-page .zas-brand-logo {
    max-height: 52px;
}

.auth-page .zas-btn {
    min-height: 44px;
}

/* =========================================================
   LOGIN MULTI-STEP FLOW
   ========================================================= */

.zas-auth-step[hidden] {
    display: none;
}

.zas-auth-secondary-button {
    width: 100%;
    margin-bottom: 1.5rem;
}

.zas-mfa-form {
    margin-top: 1.4rem;
}


/* =========================================================
   QR CODE
   ========================================================= */

.zas-mfa-qr-container {
    margin-top: 1.5rem;
    margin-bottom: 1.75rem;

    padding: 1.5rem;

    text-align: center;

    background:
        linear-gradient(
            180deg,
            #f8fcfd 0%,
            #ffffff 100%
        );

    border: 1px solid rgba(33, 158, 188, 0.16);
    border-radius: 16px;
}

.zas-mfa-qr-frame {
    width: min(100%, 240px);

    margin-inline: auto;
    padding: 0.8rem;

    background: white;

    border-radius: 14px;

    box-shadow:
        0 8px 25px rgba(2, 48, 71, 0.1);
}

.zas-mfa-qr-frame img {
    display: block;

    width: 100%;
    height: auto;
}

.zas-mfa-help {
    max-width: 420px;

    margin:
        1.25rem auto 0;

    color: var(--text-muted);

    font-size: 0.88rem;
    line-height: 1.6;
}


/* =========================================================
   OTP INPUT
   ========================================================= */

.zas-form-group .zas-otp-input {
    text-align: center;

    font-size: 1.6rem;
    font-weight: 700;

    letter-spacing: 0.55rem;

    padding-left: 1.45rem;
}

.zas-otp-input::placeholder {
    letter-spacing: 0.35rem;
}


/* =========================================================
   BACK BUTTON
   ========================================================= */

.zas-auth-back {
    display: block;

    margin: 1.35rem auto 0;

    padding: 0.35rem 0.6rem;

    color: var(--text-muted);
    background: transparent;

    border: 0;

    font-size: 0.88rem;
    font-weight: 600;

    cursor: pointer;

    transition: var(--transition);
}

.zas-auth-back:hover {
    color: var(--primary);
}


/* =========================================================
   LOADING STATES
   ========================================================= */

.zas-btn.is-loading {
    pointer-events: none;
    opacity: 0.72;
}

.zas-btn.is-loading::after {
    content: "";

    width: 15px;
    height: 15px;

    margin-left: 0.65rem;

    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: white;
    border-radius: 50%;

    animation:
        zas-button-spinner 0.7s linear infinite;
}

@keyframes zas-button-spinner {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   MOBILE MFA
   ========================================================= */

@media (max-width: 480px) {

    .zas-mfa-qr-container {
        padding: 1rem;
    }

    .zas-mfa-qr-frame {
        width: min(100%, 210px);
    }

    .zas-form-group .zas-otp-input {
        font-size: 1.4rem;
        letter-spacing: 0.4rem;
    }
}