body.auth-page {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    color: #f7f8fb;
    background: #06080d;
    overflow-x: hidden;
}

.login-page {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
}

.login-scene {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(18px, 3vw, 44px);
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(5, 7, 11, 0.54), rgba(5, 7, 11, 0.16) 48%, rgba(5, 7, 11, 0.68)),
        url("/assets/images/auth/background-image.jpg");
    background-size: cover;
    background-position: center;
}

.scene-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 5, 8, 0.08), rgba(4, 5, 8, 0.5)),
        radial-gradient(circle at 75% 28%, rgba(255, 201, 79, 0.16), transparent 26%),
        radial-gradient(circle at 92% 72%, rgba(24, 210, 231, 0.12), transparent 24%);
    pointer-events: none;
}

.scene-beam {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 205, 102, 0.68), transparent);
    filter: drop-shadow(0 0 8px rgba(255, 194, 74, 0.45));
    pointer-events: none;
}

.scene-beam-top {
    top: 0;
    right: -120px;
    width: 46%;
    transform: rotate(-37deg);
}

.scene-beam-bottom {
    bottom: 92px;
    right: -130px;
    width: 34%;
    transform: rotate(-37deg);
}

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

.brand-panel {
    min-height: 100%;
}

.brand-panel::before {
    content: "";
    position: absolute;
    inset: -44px 0 -44px -44px;
    background:
        linear-gradient(90deg, rgba(6, 8, 13, 0.74), transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 28%);
    pointer-events: none;
}

.brand-content {
    display: none;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.auth-shell {
    width: min(100%, 460px);
    max-height: calc(100svh - clamp(36px, 6vw, 88px));
    padding: clamp(24px, 3.2vw, 34px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    overflow-y: auto;
    background:
        linear-gradient(180deg, rgba(18, 21, 32, 0.96), rgba(9, 11, 18, 0.96)),
        rgba(11, 13, 21, 0.96);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(255, 198, 79, 0.12),
        0 30px 70px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(14px);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 201, 79, 0.45) rgba(255, 255, 255, 0.06);
}

.auth-shell::-webkit-scrollbar {
    width: 6px;
}

.auth-shell::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 201, 79, 0.45);
}

.auth-heading span,
.security-card strong {
    color: #ffc94f;
}

.shield-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: clamp(74px, 11vh, 104px);
    margin: 0 auto 8px;
}

.shield {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(62px, 8vh, 76px);
    height: clamp(62px, 8vh, 76px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 200, 100, 0.17) 0%, rgba(0, 0, 0, 0) 70%);
}

.shield::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow:
        0 0 24px rgba(255, 200, 100, 0.32),
        0 0 54px rgba(255, 200, 100, 0.16);
    animation: pulse 2.4s infinite;
}

.shield svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 8px rgba(255, 200, 100, 0.58));
}

.field-icon svg,
.password-toggle svg,
.login-button svg,
.divider-badge svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-heading {
    margin-bottom: clamp(20px, 3vh, 28px);
    text-align: center;
}

.auth-heading h2 {
    margin: 0;
    color: #f8f8fa;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
    letter-spacing: 0;
}

.auth-heading p {
    margin: 9px 0 0;
    color: #a9afb9;
    font-size: 14px;
}

.auth-alert {
    margin-bottom: 16px;
    border: 1px solid rgba(232, 127, 106, 0.35);
    border-radius: 8px;
    color: #ffd8d1;
    background: rgba(111, 23, 11, 0.22);
}

.login-form {
    display: grid;
    gap: 16px;
}

.field-group {
    display: grid;
    gap: 9px;
}

.field-group label {
    display: none;
}

.field-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #d1d4db;
    opacity: 0.92;
    pointer-events: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.field-wrap input {
    width: 100%;
    height: 56px;
    padding: 0 56px 0 54px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    outline: none;
    color: #f8f8fa;
    background: rgba(255, 255, 255, 0.035);
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.field-wrap input::placeholder {
    color: #888e9b;
}

.field-wrap input:focus,
.field-wrap.is-focused input {
    border-color: rgba(255, 198, 79, 0.58);
    box-shadow: 0 0 0 4px rgba(255, 198, 79, 0.11);
    transform: translateY(-1px);
}

.field-wrap:focus-within .field-icon,
.field-icon.is-focused,
.field-icon.is-filled {
    color: #ffc94f;
    opacity: 1;
}

.field-wrap.is-filled input {
    border-color: rgba(255, 198, 79, 0.3);
}

.field-wrap input:-webkit-autofill,
.field-wrap input:-webkit-autofill:hover,
.field-wrap input:-webkit-autofill:focus,
.field-wrap input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 9999px #0e1120 inset;
    box-shadow: 0 0 0 9999px #0e1120 inset;
    -webkit-text-fill-color: #f5f5f6;
    caret-color: #f5f5f6;
    border-color: rgba(255, 198, 79, 0.56);
}

.field-wrap input:-webkit-autofill ~ .field-icon,
.field-wrap input:autofill ~ .field-icon {
    color: #ffc94f;
    opacity: 1;
}

.password-toggle {
    position: absolute;
    right: 11px;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    color: #bfc3cc;
    background: transparent;
    cursor: pointer;
}

.password-toggle .icon-hide,
.password-toggle.is-visible .icon-show {
    display: none;
}

.password-toggle.is-visible .icon-hide {
    display: block;
}

.form-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: -2px;
}

.auth-meta-note {
    max-width: 100%;
    color: #c8b17a;
    font-size: 12px;
    line-height: 1.4;
    text-align: right;
}

.login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    height: 58px;
    margin-top: 4px;
    border: 0;
    border-radius: 8px;
    color: #171717;
    background: linear-gradient(135deg, #ffe08c 0%, #ffc94f 48%, #e1a517 100%);
    box-shadow:
        0 16px 36px rgba(224, 164, 20, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
    cursor: pointer;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 20px 40px rgba(224, 164, 20, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.login-button svg {
    width: 18px;
    height: 18px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: clamp(22px, 3.4vh, 30px) 0 18px;
}

.auth-divider span {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.09);
}

.divider-badge {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 198, 79, 0.14);
    border-radius: 999px;
    color: #a0a6b1;
    background: rgba(255, 198, 79, 0.04);
}

.divider-badge svg {
    width: 13px;
    height: 13px;
}

.security-card {
    padding: 0 12px;
    text-align: center;
}

.security-card strong {
    display: block;
    margin-bottom: 5px;
    color: #e7eaf0;
    font-size: 14px;
}

.security-card p {
    margin: 0;
    color: #8d94a0;
    font-size: 12px;
}

@keyframes pulse {
    0% { box-shadow: 0 0 18px rgba(255, 200, 100, 0.18); }
    50% { box-shadow: 0 0 36px rgba(255, 200, 100, 0.42); }
    100% { box-shadow: 0 0 18px rgba(255, 200, 100, 0.18); }
}

@media (max-width: 1180px) {
    .login-scene {
        grid-template-columns: minmax(0, 1fr) minmax(390px, 500px);
        padding: 28px;
    }
}

@media (max-width: 900px) {
    .login-scene {
        grid-template-columns: 1fr;
        place-items: center;
        padding: 28px 18px;
    }

    .brand-panel {
        display: none;
    }

    .auth-panel {
        width: 100%;
    }

    .auth-shell {
        width: min(100%, 480px);
        max-height: none;
    }
}

@media (max-width: 640px) {
    .login-scene {
        align-items: start;
        padding: 18px 14px;
        overflow-y: auto;
    }

    .auth-shell {
        padding: 22px 16px;
    }

    .shield-wrapper {
        height: 70px;
        margin-bottom: 6px;
    }

    .shield {
        width: 60px;
        height: 60px;
    }

    .shield svg {
        width: 34px;
        height: 34px;
    }

    .auth-heading {
        margin-bottom: 18px;
    }

    .auth-heading h2 {
        font-size: 27px;
    }

    .field-wrap input {
        height: 52px;
        padding-left: 50px;
        padding-right: 52px;
        font-size: 15px;
    }

    .field-icon {
        left: 15px;
    }

    .login-button {
        height: 54px;
        font-size: 15px;
    }

    .auth-meta-note {
        text-align: left;
    }

    .scene-beam-top,
    .scene-beam-bottom {
        display: none;
    }
}

@media (max-width: 380px) {
    .login-scene {
        padding: 12px 10px;
    }

    .auth-shell {
        padding: 18px 13px;
    }

    .auth-heading h2 {
        font-size: 24px;
    }

    .auth-heading p,
    .auth-meta-note {
        font-size: 12px;
    }
}

@media (max-height: 760px) and (min-width: 901px) {
    .auth-shell {
        padding: 22px 26px;
    }

    .shield-wrapper {
        height: 72px;
        margin-bottom: 4px;
    }

    .shield {
        width: 58px;
        height: 58px;
    }

    .shield svg {
        width: 32px;
        height: 32px;
    }

    .auth-heading {
        margin-bottom: 18px;
    }

    .auth-heading h2 {
        font-size: 30px;
    }

    .login-form {
        gap: 13px;
    }

    .field-wrap input {
        height: 50px;
    }

    .login-button {
        height: 52px;
    }

    .auth-divider {
        margin: 18px 0 14px;
    }
}
