:root {
    --navy: #04152E;
    --navy-2: #0d2f66;
    --gold: #C49926;
    --ink: #11151d;
    --muted: #8d939e;
    --field: #f4f5f7;
    --line: #eceef1;
    --link: #0f3f8f;
    --gold-dark: #8c6c12;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
}

body.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 32px 36px;
    background:
        radial-gradient(ellipse 60% 60% at 70% 20%, rgba(29, 79, 163, .55) 0%, rgba(29, 79, 163, 0) 100%),
        linear-gradient(160deg, #0a2557 0%, var(--navy) 55%, #020c1c 100%);
    background-color: var(--navy);
    font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.auth-back {
    position: absolute;
    top: 22px;
    left: 32px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    font-weight: 500;
}

.auth-back:hover {
    color: var(--gold);
    text-decoration: none;
}

.auth-back svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Card */
.auth-card {
    width: 100%;
    max-width: 1020px;
    min-height: min(640px, calc(100vh - 96px));
    display: grid;
    grid-template-columns: 54% 1fr;
    padding: 7px;
    background: #fff;
    border-radius: 26px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(196, 153, 38, .25);
}

/* Left panel */
.auth-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 34px;
    border-radius: 20px;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(4, 21, 46, .6) 0%, rgba(4, 21, 46, .2) 26%, rgba(4, 21, 46, .78) 62%, rgba(4, 21, 46, .96) 100%),
        linear-gradient(135deg, rgba(13, 47, 102, .35), rgba(196, 153, 38, .12)),
        url("../img/login-hero.jpg?v=20261009") 62% center / cover no-repeat,
        var(--navy);
}

.auth-logo {
    align-self: flex-start;
    display: inline-flex;
}

.auth-logo img {
    display: block;
    height: 56px;
    width: auto;
    filter: drop-shadow(0 2px 10px rgba(4, 21, 46, .55));
}

.auth-hero-body {
    margin-top: auto;
    padding-top: 60px;
}

.auth-hero-title {
    margin: 0 0 10px;
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: -.02em;
}

.auth-hero-text {
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .85);
}

.auth-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-step {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 118px;
    padding: 13px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, .78);
    transition: background .3s, color .3s;
}

.auth-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .55);
    font-size: 12px;
    font-weight: 500;
}

.auth-step-text {
    font-size: 13.5px;
    line-height: 1.4;
    max-width: 140px;
}

.auth-step.is-active {
    background: #fff;
    border-color: #fff;
    color: var(--ink);
}

.auth-step.is-active .auth-step-num {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
    font-weight: 700;
}

.auth-step.is-active .auth-step-text {
    font-weight: 600;
}

/* Right panel */
.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 34px;
}

.auth-form {
    width: 100%;
    max-width: 330px;
}

.auth-form[hidden] {
    display: none;
}

.auth-title {
    margin: 0 0 24px;
    text-align: center;
    font-size: 27px;
    font-weight: 500;
    letter-spacing: -.01em;
}

.auth-field {
    margin-bottom: 16px;
    min-width: 0;
}

.auth-field label,
.auth-label-row label {
    display: block;
    margin-bottom: 7px;
    font-size: 12.5px;
    font-weight: 600;
}

.auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.auth-forgot {
    font-size: 12.5px;
    font-weight: 600;
}

.auth-input {
    position: relative;
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 14px;
    background: var(--field);
    border: 1.5px solid transparent;
    border-radius: 11px;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.auth-input:focus-within {
    background: #fff;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(196, 153, 38, .14);
}

.auth-input.is-invalid {
    border-color: #e5484d;
    background: #fff;
}

.auth-input input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 13.5px;
    color: var(--ink);
}

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

.auth-input input[type=password]::placeholder {
    letter-spacing: .08em;
}

.auth-eye {
    display: inline-flex;
    margin-left: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: #b3b8c1;
    cursor: pointer;
}

.auth-eye:hover {
    color: var(--ink);
}

.auth-eye svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-eye .eye-open,
.auth-eye.is-shown .eye-closed {
    display: none;
}

.auth-eye.is-shown .eye-open {
    display: block;
}

/* Remember */
.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -2px 0 16px;
    font-size: 12.5px;
    color: #4a505b;
    cursor: pointer;
}

.auth-remember input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--navy);
}

/* Buttons */
.auth-submit {
    display: block;
    width: 100%;
    height: 46px;
    margin-top: 6px;
    border: 0;
    border-radius: 11px;
    background: var(--navy);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s, transform .1s;
}

.auth-submit:hover {
    background: var(--gold);
    color: var(--navy);
}

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

.auth-submit:disabled {
    opacity: .7;
    cursor: progress;
}

.auth-status {
    min-height: 0;
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.auth-status:not(:empty) {
    margin-top: 12px;
}

.auth-status.is-error {
    color: #d93025;
}

.auth-status.is-success {
    color: #1f7a45;
}

.auth-switch {
    margin: 12px 0 0;
    text-align: center;
    font-size: 12.5px;
    color: #2b303a;
}

.auth-switch a,
.auth-forgot,
.auth-legal a {
    color: var(--gold-dark);
    font-weight: 600;
}

.auth-legal {
    margin: 20px 0 0;
    text-align: center;
    font-size: 11.5px;
    line-height: 1.6;
    color: #3a3f4a;
}

/* Responsive */
@media (min-width: 992px) {
    body.auth-page {
        background-attachment: fixed;
    }
}

@media (max-width: 1199px) {
    .auth-hero {
        padding: 30px;
    }

    .auth-step-text {
        font-size: 13px;
    }
}

@media (max-width: 991px) {
    body.auth-page {
        padding: 64px 20px 32px;
    }

    .auth-card {
        grid-template-columns: 1fr;
        min-height: 0;
        max-width: 600px;
    }

    .auth-hero-body {
        padding-top: 90px;
    }

    .auth-step {
        min-height: 104px;
    }

    .auth-panel {
        padding: 36px 28px 32px;
    }
}

@media (max-width: 575px) {
    body.auth-page {
        padding: 56px 10px 16px;
    }

    .auth-back {
        left: 16px;
        top: 18px;
    }

    .auth-card {
        padding: 6px;
        border-radius: 24px;
    }

    .auth-hero {
        padding: 24px 20px;
        border-radius: 19px;
    }

    .auth-logo img {
        height: 36px;
    }

    .auth-hero-body {
        padding-top: 110px;
    }

    .auth-hero-text {
        margin-bottom: 24px;
        font-size: 15px;
    }

    .auth-steps {
        gap: 8px;
    }

    .auth-step {
        min-height: 108px;
        padding: 12px;
        border-radius: 13px;
    }

    .auth-step-num {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }

    .auth-step-text {
        font-size: 12.5px;
    }

    .auth-panel {
        padding: 36px 14px 28px;
    }

    .auth-title {
        font-size: 25px;
        margin-bottom: 22px;
    }
}

