/* -------------------------------------------------------------------------- */
/* Login page                                                                  */
/* -------------------------------------------------------------------------- */

.auth-body {
    min-height: 100vh;
    background: #f4f7fc;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(460px, .92fr);
    min-height: 100vh;
}

.auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px clamp(34px, 5vw, 80px);
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(circle at 84% 8%, rgba(255, 210, 28, .16), transparent 24%),
        radial-gradient(circle at 6% 72%, rgba(52, 130, 255, .28), transparent 30%),
        linear-gradient(150deg, #073879 0%, #052d6b 46%, #031a45 100%);
}

.auth-brand::before {
    content: '';
    position: absolute;
    inset: 90px 0 0;
    background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(90deg, transparent, #000 22%, #000 72%, transparent);
    pointer-events: none;
}

.auth-brand::after {
    content: '';
    position: absolute;
    right: -145px;
    bottom: -180px;
    width: 400px;
    height: 400px;
    border: 72px solid rgba(255, 210, 28, .07);
    border-radius: 50%;
    pointer-events: none;
}

.auth-brand-inner,
.auth-brand-footer {
    position: relative;
    z-index: 1;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 176px;
    padding: 10px 14px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .18);
}

.auth-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.auth-brand-copy {
    max-width: 520px;
    margin-top: clamp(52px, 8vh, 94px);
}

.auth-brand-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #b9d0f1;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.auth-brand-kicker .lucide {
    width: 14px;
    height: 14px;
    color: var(--yellow);
}

.auth-brand-copy h1 {
    max-width: 500px;
    margin-top: 14px;
    color: #fff;
    font-size: clamp(30px, 3.25vw, 46px);
    line-height: 1.13;
    font-weight: 800;
    letter-spacing: -.035em;
}

.auth-brand-copy h1 span {
    color: var(--yellow);
}

.auth-brand-copy p {
    max-width: 450px;
    margin-top: 17px;
    color: #a9c3e8;
    font-size: 15px;
    line-height: 1.75;
}

.auth-features {
    display: grid;
    gap: 15px;
    max-width: 455px;
    margin-top: 34px;
}

.auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.auth-feature-icon {
    display: grid;
    flex: none;
    width: 35px;
    height: 35px;
    place-items: center;
    color: var(--yellow);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 9px;
    background: rgba(255, 255, 255, .075);
}

.auth-feature-icon .lucide {
    width: 16px;
    height: 16px;
}

.auth-feature strong {
    display: block;
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
}

.auth-feature span {
    display: block;
    max-width: 365px;
    margin-top: 3px;
    color: #9fbbe1;
    font-size: 12.5px;
    line-height: 1.55;
}

.auth-brand-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 26px;
    color: #8faddb;
    font-size: 12px;
}

.auth-brand-footer span:first-child {
    color: #d4e3f8;
    font-weight: 700;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px;
    background:
        radial-gradient(circle at 20% 10%, rgba(29, 99, 233, .045), transparent 30%),
        #f7f9fd;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    padding: 36px 38px 30px;
    background: #fff;
    border: 1px solid rgba(224, 231, 242, .9);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(13, 39, 84, .075);
}

.auth-mobile-logo {
    display: none;
    justify-content: center;
    width: 154px;
    margin: 0 auto 24px;
    padding: 9px 13px;
    background: #fff;
    border: 1px solid #edf1f7;
    border-radius: 13px;
}

.auth-mobile-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.auth-eyebrow .lucide {
    width: 13px;
    height: 13px;
}

.auth-card h1 {
    margin-top: 9px;
    color: #14233c;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.025em;
}

.auth-subtitle {
    margin-top: 7px;
    color: #8b96a8;
    font-size: 13.5px;
    line-height: 1.6;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 17px;
    padding: 10px 11px;
    border-radius: 9px;
    font-size: 12.5px;
    line-height: 1.5;
}

.auth-alert .lucide {
    flex: none;
    width: 15px;
    height: 15px;
    margin-top: 1px;
}

.auth-alert.error {
    color: #a32d2d;
    border: 1px solid #f3d2d2;
    background: #fff3f3;
}

.auth-alert.success {
    color: #217a45;
    border: 1px solid #cfeada;
    background: #f1fbf5;
}

.auth-field {
    margin-top: 17px;
}

.auth-field label {
    display: block;
    margin-bottom: 6px;
    color: #42516a;
    font-size: 12.5px;
    font-weight: 700;
}

.auth-input {
    position: relative;
}

.auth-input > .lucide {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 16px;
    height: 16px;
    color: #9aa6b7;
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-input input {
    width: 100%;
    height: 45px;
    padding: 0 44px 0 40px;
    color: #1b2940;
    background: #fbfcfe;
    border: 1px solid #e2e8f2;
    border-radius: 9px;
    outline: none;
    font-size: 14.5px;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.auth-input input::placeholder {
    color: #aab4c3;
}

.auth-input input:focus {
    background: #fff;
    border-color: #8bb4ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    display: grid;
    width: 31px;
    height: 31px;
    padding: 0;
    place-items: center;
    color: #8b98aa;
    background: transparent;
    border: 0;
    border-radius: 7px;
    transform: translateY(-50%);
}

.auth-password-toggle:hover {
    color: #42516a;
    background: #f2f6fc;
}

.auth-password-toggle .lucide {
    width: 16px;
    height: 16px;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #6d7a8f;
    font-size: 12.5px;
    cursor: pointer;
}

.auth-checkbox input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: var(--blue);
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 45px;
    margin-top: 20px;
    color: #0a326b;
    background: var(--yellow);
    border: 0;
    border-radius: 9px;
    box-shadow: 0 10px 22px rgba(244, 189, 0, .22);
    font-size: 14.5px;
    font-weight: 800;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.auth-submit:hover {
    background: #ffdb4d;
    box-shadow: 0 12px 26px rgba(244, 189, 0, .28);
    transform: translateY(-1px);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-submit .lucide {
    width: 16px;
    height: 16px;
}

.auth-demo {
    margin-top: 19px;
    padding: 12px 13px;
    border: 1px solid #dce9ff;
    border-radius: 10px;
    background: #f5f9ff;
}

.auth-demo-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.auth-demo-title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2a5da8;
    font-size: 12.5px;
    font-weight: 800;
}

.auth-demo-title .lucide {
    width: 14px;
    height: 14px;
}

.auth-demo-fill {
    padding: 4px 8px;
    color: #2a5da8;
    background: #fff;
    border: 1px solid #d4e4ff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.auth-demo-fill:hover {
    background: #eaf3ff;
}

.auth-demo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 7px;
    color: #7185a0;
    font-size: 12px;
}

.auth-demo-row code {
    color: #274b7d;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
}

.auth-footer {
    margin-top: 22px;
    color: #a0aaba;
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
}

@media (max-width: 960px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        display: none;
    }

    .auth-panel {
        min-height: 100vh;
        padding: 28px 18px;
    }

    .auth-mobile-logo {
        display: flex;
    }
}

@media (max-width: 480px) {
    .auth-panel {
        align-items: flex-start;
        padding: 16px 12px;
    }

    .auth-card {
        padding: 26px 20px 24px;
        border-radius: 18px;
    }

    .auth-card h1 {
        font-size: 30px;
    }

    .auth-brand-footer {
        display: none;
    }
}
