﻿.login-stage {
    position: relative;
    min-height: calc(100vh - 88px);
    padding: 58px 0 74px;
    background: linear-gradient(125deg, #071e3d 0%, #0b3469 52%, #0859a8 100%);
    color: var(--white);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.login-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.login-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}

.login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(75px);
    pointer-events: none;
    z-index: 0;
}

.login-orb-1 {
    width: 480px;
    height: 480px;
    left: -140px;
    top: -160px;
    background: radial-gradient(circle, rgba(76, 212, 255, 0.25), transparent 70%);
    animation: orbDrift 12s ease-in-out infinite alternate;
}

.login-orb-2 {
    width: 520px;
    height: 520px;
    right: -140px;
    bottom: -180px;
    background: radial-gradient(circle, rgba(20, 188, 133, 0.2), transparent 70%);
    animation: orbDrift 15s ease-in-out infinite alternate-reverse;
}

.login-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.login-showcase.role-fade {
    animation: panelFadeIn 0.42s var(--ease-out) forwards;
}

.login-crumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #9dd8ff;
    margin-bottom: 18px;
}

    .login-crumb a:hover {
        color: var(--white);
    }

.login-showcase h1 {
    font: 800 clamp(32px, 3.8vw, 48px) / 1.12 "Manrope", sans-serif;
    letter-spacing: -1.5px;
    margin: 14px 0 14px;
    color: var(--white);
}

    .login-showcase h1 span {
        color: #7dd5ff;
    }

.showcase-desc {
    font-size: 15px;
    line-height: 1.78;
    color: #c6dff4;
    max-width: 500px;
    margin: 0 0 28px;
}

.vault-visual {
    position: relative;
    height: 196px;
    max-width: 470px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vault-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(130, 218, 255, 0.34);
}

.ring-outer {
    width: 190px;
    height: 190px;
    border-style: dashed;
    animation: orbitSpin 20s linear infinite;
}

.ring-mid {
    width: 136px;
    height: 136px;
    border-color: rgba(130, 218, 255, 0.5);
    animation: orbitSpin 13s linear infinite reverse;
}

.vault-pulse {
    position: absolute;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 1.5px solid rgba(112, 224, 255, 0.65);
    animation: wavePulse 3s ease-out infinite;
}

.vault-core {
    position: relative;
    z-index: 2;
    width: 78px;
    height: 78px;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #a8e3ff 100%);
    color: var(--blue);
    display: grid;
    place-items: center;
    box-shadow: 0 0 42px rgba(76, 212, 255, 0.58);
    animation: floatCard 4.5s ease-in-out infinite;
}

    .vault-core svg {
        width: 34px;
        height: 34px;
    }

.vault-chip {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(168, 226, 255, 0.32);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 14px 32px rgba(3, 18, 42, 0.28);
    transition: transform 0.25s ease-out;
}

.chip-1 {
    left: 0;
    top: 20px;
}

.chip-2 {
    right: 0;
    bottom: 18px;
}

.chip-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-green {
    background: #23e09f;
    box-shadow: 0 0 0 5px rgba(35, 224, 159, 0.2);
}

.dot-cyan {
    background: #67dbff;
    box-shadow: 0 0 0 5px rgba(103, 219, 255, 0.2);
}

.vault-chip b {
    display: block;
    font: 800 12.5px "Manrope", sans-serif;
    color: var(--white);
}

.vault-chip small {
    display: block;
    font-size: 10.5px;
    color: #c2dff5;
}

.showcase-highlights {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hl-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #d8edff;
}

    .hl-item span {
        width: 21px;
        height: 21px;
        border-radius: 6px;
        background: rgba(20, 188, 133, 0.22);
        color: #5ef3bf;
        display: grid;
        place-items: center;
        font-size: 11px;
        font-weight: 800;
        flex-shrink: 0;
    }

.login-card-wrap {
    display: flex;
    justify-content: flex-end;
}

.login-card {
    width: 100%;
    max-width: 470px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--ink);
    border-radius: 20px;
    padding: 32px 32px 28px;
    box-shadow: 0 32px 80px rgba(3, 18, 42, 0.45);
    border: 1px solid rgba(204, 232, 255, 0.85);
    position: relative;
    overflow: hidden;
    animation: cardRise 0.65s var(--ease-out) forwards;
}

.login-card-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--blue2), var(--cyan), #14bc85);
    background-size: 200% 100%;
    animation: gradientShift 5s linear infinite;
}

.role-switch {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    border-radius: 12px;
    background: #eef6ff;
    border: 1px solid #d2e6f9;
    margin-bottom: 24px;
}

.role-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    border-radius: 9px;
    background: linear-gradient(100deg, var(--blue), var(--blue2));
    box-shadow: 0 8px 18px rgba(8, 118, 216, 0.28);
    transition: transform 0.34s var(--ease-out);
    pointer-events: none;
}

.role-switch.is-staff .role-slider {
    transform: translateX(100%);
}

.role-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    background: transparent;
    padding: 10px 12px;
    font: 800 13px "DM Sans", sans-serif;
    color: #365678;
    cursor: pointer;
    transition: color 0.25s ease;
}

    .role-btn svg {
        width: 17px;
        height: 17px;
    }

    .role-btn.active {
        color: var(--white);
    }

.auth-panel.active {
    animation: panelFadeIn 0.35s var(--ease-out) forwards;
}

.auth-head {
    margin-bottom: 20px;
}

    .auth-head h2 {
        font: 800 25px / 1.2 "Manrope", sans-serif;
        color: var(--navy);
        margin: 0 0 6px;
    }

    .auth-head p {
        font-size: 13.5px;
        color: var(--muted);
        margin: 0;
    }

.login-field-group {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
}

    .login-field-group label {
        font-size: 12px;
        font-weight: 700;
        color: #264362;
        margin-bottom: 6px;
    }

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

    .label-row label {
        margin-bottom: 0;
    }

.forgot-trigger {
    border: 0;
    background: transparent;
    padding: 0;
    font: 700 12px "DM Sans", sans-serif;
    color: var(--blue);
    cursor: pointer;
    transition: color 0.2s ease;
}

    .forgot-trigger:hover {
        color: var(--navy);
        text-decoration: underline;
    }

.input-icon-wrap {
    position: relative;
}

.in-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #7c94ad;
    display: grid;
    place-items: center;
    pointer-events: none;
    transition: color 0.22s ease;
}

    .in-icon svg {
        width: 18px;
        height: 18px;
    }

.input-icon-wrap input {
    width: 100%;
    padding: 12px 42px 12px 40px;
    font: 500 14px "DM Sans", Arial, sans-serif;
    color: var(--ink);
    background: #f5f9fe;
    border: 1.5px solid #d5e4f2;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

    .input-icon-wrap input:focus {
        background: var(--white);
        border-color: var(--blue2);
        box-shadow: 0 0 0 4px rgba(19, 166, 238, 0.14);
    }

.input-icon-wrap:focus-within .in-icon {
    color: var(--blue);
}

.login-field-group.is-invalid input {
    border-color: #e03b4a;
    background: #fff7f8;
    box-shadow: 0 0 0 3px rgba(224, 59, 74, 0.1);
}

.login-field-group.shake {
    animation: fieldShake 0.35s ease;
}

.toggle-pass-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #6a839e;
    display: grid;
    place-items: center;
    cursor: pointer;
    border-radius: 7px;
    transition: color 0.2s ease, background 0.2s ease;
}

    .toggle-pass-btn:hover {
        color: var(--blue);
        background: #eaf5ff;
    }

    .toggle-pass-btn svg {
        width: 18px;
        height: 18px;
    }

.caps-warning {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 800;
    color: #c97208;
}

.login-captcha-box {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: 11px;
    background: #f3f9ff;
    border: 1.5px solid #cfe3f6;
}

.login-field-group.is-invalid .login-captcha-box {
    border-color: #e03b4a;
    background: #fff7f8;
}

.login-captcha-box .captcha-img-frame {
    width: 162px;
    height: 44px;
}

.login-captcha-box .captcha-input-wrap input {
    height: 44px;
    padding: 8px 6px;
}

.login-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 16px;
}

.remember-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #46607a;
    cursor: pointer;
    user-select: none;
}

    .remember-check input {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

.check-box {
    width: 17px;
    height: 17px;
    border-radius: 5px;
    border: 1.5px solid #bdd4ea;
    background: #f5f9fe;
    display: grid;
    place-items: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.remember-check input:checked + .check-box {
    background: var(--blue);
    border-color: var(--blue);
}

    .remember-check input:checked + .check-box::after {
        content: "\2713";
        color: var(--white);
        font-size: 11px;
        font-weight: 800;
    }

.secure-tag {
    font: 800 10px "Manrope", sans-serif;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: #0d8d62;
    background: #e1f8ef;
    padding: 4px 9px;
    border-radius: 999px;
}

.login-alert {
    margin-bottom: 14px;
    padding: 11px 13px;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.5;
}

.login-alert-error {
    background: #fff2f3;
    border: 1px solid #f4b7be;
    color: #c52536;
}

.login-alert-success {
    background: #e6faf2;
    border: 1px solid #a8e8ce;
    color: #0d8259;
}

.btn-login-submit {
    width: 100%;
    padding: 14px 22px;
    border: 0;
    cursor: pointer;
    color: var(--white);
    background: linear-gradient(100deg, var(--blue), var(--blue2));
    box-shadow: 0 14px 30px rgba(8, 118, 216, 0.3);
}

    .btn-login-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 36px rgba(8, 118, 216, 0.4);
    }

    .btn-login-submit:disabled {
        opacity: 0.78;
        cursor: not-allowed;
        transform: none !important;
    }

.btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: slowSpin 0.7s linear infinite;
}

.btn-login-submit.is-loading .btn-spinner {
    display: inline-block;
}

.btn-login-submit.is-loading .btn-icon {
    display: none;
}

.back-login-btn {
    border: 0;
    background: #eef6ff;
    color: var(--blue);
    padding: 6px 12px;
    border-radius: 8px;
    font: 800 12px "DM Sans", sans-serif;
    cursor: pointer;
    margin-bottom: 16px;
    transition: background 0.2s ease, color 0.2s ease;
}

    .back-login-btn:hover {
        background: var(--blue);
        color: var(--white);
    }

.auth-footer-note {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e7eff8;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

    .auth-footer-note a {
        color: var(--blue);
        font-weight: 800;
    }

        .auth-footer-note a:hover {
            text-decoration: underline;
        }

@keyframes cardRise {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes panelFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .login-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .login-card-wrap {
        justify-content: center;
    }

    .vault-visual {
        display: none;
    }
}

@media (max-width: 520px) {
    .login-stage {
        padding: 36px 0 54px;
    }

    .login-card {
        padding: 24px 18px 22px;
    }

    .login-captcha-box {
        flex-wrap: wrap;
    }

        .login-captcha-box .captcha-img-frame {
            flex: 1;
            min-width: 150px;
        }

        .login-captcha-box .captcha-input-wrap {
            flex: 1 1 100%;
        }
}
