:root {
    --sr-navy-950: #020817;
    --sr-navy-900: #06142b;
    --sr-navy-800: #0a2344;
    --sr-gold-500: #d9a233;
    --sr-gold-400: #f2c45f;
    --sr-text: #f8fafc;
    --sr-muted: #94a3b8;
}

body.login-page {
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
    color: var(--sr-text);
    background: var(--sr-navy-950);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.sr-login-shell,
.sr-login-shell * {
    box-sizing: border-box;
}

.sr-login-shell {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 52vw) minmax(440px, 48vw);
    background:
        linear-gradient(90deg, rgba(2, 8, 23, 0.26), rgba(2, 8, 23, 0.92)),
        url("/static/assets/login/srprime-login-bg.jpg") center left / cover no-repeat;
    isolation: isolate;
}

.sr-login-shell::before,
.sr-login-shell::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(242, 196, 95, 0.34);
    border-radius: 999px;
    pointer-events: none;
    z-index: 1;
}

.sr-login-shell::before {
    width: 920px;
    height: 920px;
    right: -180px;
    top: -90px;
    transform: rotate(-18deg);
}

.sr-login-shell::after {
    width: 1180px;
    height: 1180px;
    right: -350px;
    top: -210px;
    opacity: 0.5;
    transform: rotate(12deg);
}

.sr-login-brand-wall {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: clamp(36px, 6vw, 90px);
}

.sr-login-brand-lockup {
    width: min(100%, 420px);
    color: rgba(226, 232, 240, 0.88);
}

.sr-login-brand-small {
    display: block;
    width: min(100%, 320px);
    height: auto;
    margin-bottom: 34px;
    filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.52));
}

.sr-login-brand-lockup p {
    margin: 0;
    max-width: 360px;
    color: rgba(226, 232, 240, 0.78);
    font-size: 17px;
    line-height: 1.7;
    padding: 22px 24px;
    border-left: 2px solid rgba(242, 196, 95, 0.48);
    background: linear-gradient(90deg, rgba(3, 17, 43, 0.42), transparent);
}

.sr-login-panel {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 4vw, 58px);
    background:
        radial-gradient(circle at 42% 28%, rgba(13, 58, 109, 0.52), transparent 38%),
        linear-gradient(135deg, rgba(3, 17, 43, 0.72), rgba(4, 21, 47, 0.96));
    backdrop-filter: blur(2px);
}

.sr-login-card {
    position: relative;
    width: min(100%, 500px);
    padding: clamp(28px, 3.4vw, 46px);
    border: 1px solid rgba(217, 162, 51, 0.12);
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(11, 31, 68, 0.9), rgba(4, 20, 47, 0.96));
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
}

.sr-login-logo {
    display: block;
    width: min(100%, 390px);
    height: 160px;
    margin: 0 auto 30px;
    object-fit: contain;
    filter: drop-shadow(0 18px 35px rgba(0, 0, 0, 0.45));
}

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

.sr-field label {
    display: block;
    margin: 0 0 10px;
    color: rgba(226, 232, 240, 0.86);
    font-size: 14px;
    font-weight: 700;
}

.sr-field-control {
    position: relative;
}

.sr-field input {
    width: 100%;
    height: 64px;
    border: 1px solid rgba(148, 163, 184, 0.36);
    border-radius: 16px;
    outline: none;
    background: rgba(2, 8, 23, 0.42);
    color: var(--sr-text);
    font-size: 18px;
    padding: 0 78px 0 58px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sr-field input::placeholder {
    color: rgba(226, 232, 240, 0.48);
}

.sr-field input:focus {
    border-color: rgba(242, 196, 95, 0.82);
    background: rgba(2, 8, 23, 0.58);
    box-shadow: 0 0 0 4px rgba(217, 162, 51, 0.12);
}

.sr-field-icon,
.sr-password-toggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.sr-field-icon {
    left: 22px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: rgba(226, 232, 240, 0.72);
    font-size: 13px;
    font-weight: 800;
    background: rgba(148, 163, 184, 0.16);
}

.sr-password-toggle {
    right: 18px;
    border: 0;
    background: transparent;
    color: var(--sr-gold-400);
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
}

.sr-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--sr-text);
    font-size: 15px;
}

.sr-login-options label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.sr-login-options input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--sr-gold-500);
}

.sr-login-options a {
    color: var(--sr-gold-400);
    text-decoration: none;
}

.sr-login-options a:hover,
.sr-password-toggle:hover {
    color: #ffe29a;
}

.sr-login-button {
    width: 100%;
    height: 68px;
    margin-top: 6px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, #f4c961, #d49420);
    color: #071225;
    cursor: pointer;
    font-size: 26px;
    font-weight: 900;
    box-shadow: 0 18px 40px rgba(217, 162, 51, 0.28);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.sr-login-button:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.sr-login-error {
    margin: 0 0 20px;
    padding: 14px 18px;
    border: 1px solid rgba(248, 113, 113, 0.55);
    border-radius: 12px;
    background: rgba(127, 29, 29, 0.35);
    color: #fecaca;
}

.sr-login-success {
    margin: 0 0 20px;
    padding: 14px 18px;
    border: 1px solid rgba(74, 222, 128, 0.45);
    border-radius: 12px;
    background: rgba(20, 83, 45, 0.34);
    color: #bbf7d0;
}

.sr-auth-subtitle {
    margin: -12px 0 26px;
    color: rgba(248, 250, 252, 0.86);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.sr-login-link {
    color: var(--sr-gold-400);
    font-weight: 800;
    text-decoration: none;
}

.sr-login-link:hover {
    color: #ffe29a;
}

.sr-login-footer {
    margin-top: 28px;
    color: rgba(148, 163, 184, 0.78);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 980px) {
    body.login-page {
        overflow: auto;
    }

    .sr-login-shell {
        grid-template-columns: 1fr;
        background-position: center;
    }

    .sr-login-brand-wall {
        display: none;
    }

    .sr-login-panel {
        min-height: 100vh;
        padding: 28px;
    }

    .sr-login-card {
        padding: 28px;
        border-radius: 26px;
    }

    .sr-login-logo {
        height: 150px;
        margin-bottom: 28px;
    }
}

@media (max-width: 560px) {
    .sr-login-panel {
        padding: 18px;
    }

    .sr-login-card {
        padding: 24px 18px;
    }

    .sr-login-logo {
        height: 120px;
    }

    .sr-login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }
}
