:root {
    --ink: #111827;
    --muted: #667085;
    --line: #e5e7eb;
    --soft: #f7f8fa;
    --gold: #f2b91f;
    --gold-dark: #d99a00;
    --danger: #b42318;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: #edf0f4;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: "Archivo", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 36px;
    background:
        radial-gradient(circle at 8% 8%, rgba(242, 185, 31, .16), transparent 23rem),
        radial-gradient(circle at 93% 90%, rgba(17, 24, 39, .09), transparent 25rem),
        #edf0f4;
}

.login-shell {
    width: min(1080px, 100%);
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(430px, .98fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(16, 24, 40, .16), 0 3px 12px rgba(16, 24, 40, .06);
}

.brand-panel {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    padding: 48px 52px 44px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, #191f2a 0%, #0b1019 68%, #15120a 100%);
}

.brand-panel::before,
.brand-panel::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
}

.brand-panel::before {
    width: 390px;
    height: 390px;
    right: -185px;
    top: -145px;
    border: 80px solid rgba(242, 185, 31, .12);
}

.brand-panel::after {
    width: 430px;
    height: 430px;
    left: -250px;
    bottom: -270px;
    background: rgba(242, 185, 31, .07);
}

.site-link {
    display: inline-flex;
    width: 232px;
    padding: 13px 16px;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
}

.site-link img,
.mobile-brand img {
    display: block;
    width: 100%;
    height: auto;
}

.brand-copy {
    margin: auto 0;
    padding: 58px 0 42px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: #f8cb4f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.eyebrow span {
    width: 28px;
    height: 2px;
    background: var(--gold);
}

.brand-copy h1 {
    margin: 0;
    max-width: 480px;
    font-size: clamp(35px, 4.2vw, 51px);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.brand-copy p {
    max-width: 440px;
    margin: 25px 0 0;
    color: #aeb6c3;
    font-size: 16px;
    line-height: 1.75;
}

.trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.trust-row div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d8dde5;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.trust-row i {
    color: var(--gold);
    font-size: 18px;
}

.form-panel {
    min-width: 0;
    display: grid;
    place-items: center;
    padding: 46px 58px;
    background: #fff;
}

.form-wrap {
    width: 100%;
    min-width: 0;
    max-width: 410px;
}

.mobile-brand {
    display: none;
}

.form-heading {
    display: flex;
    align-items: center;
    gap: 16px;
}

.welcome-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #17120a;
    background: #fff3cb;
    box-shadow: inset 0 0 0 1px #f9df87;
}

.form-heading .kicker {
    margin: 0 0 4px;
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.form-heading h2 {
    margin: 0;
    font-size: 29px;
    line-height: 1.2;
    letter-spacing: -.035em;
}

.intro {
    margin: 18px 0 30px;
    color: var(--muted);
    font-size: 14px;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: -8px 0 22px;
    padding: 12px 14px;
    border: 1px solid #fecdca;
    border-radius: 10px;
    color: var(--danger);
    background: #fff5f4;
    font-size: 13px;
    line-height: 1.45;
}

.alert i {
    margin-top: 2px;
}

.field-group {
    margin-bottom: 21px;
}

.field-group label,
.label-row span {
    font-size: 13px;
}

.field-group label {
    display: inline-block;
    margin-bottom: 9px;
    color: #344054;
    font-weight: 700;
}

.label-row {
    display: flex;
    justify-content: space-between;
}

.label-row span {
    color: #98a2b3;
}

.field-control {
    position: relative;
}

.field-control > i {
    position: absolute;
    left: 16px;
    top: 50%;
    color: #98a2b3;
    transform: translateY(-50%);
    pointer-events: none;
}

.field-control input {
    width: 100%;
    height: 52px;
    padding: 0 48px 0 45px;
    border: 1px solid #d0d5dd;
    border-radius: 11px;
    outline: 0;
    color: var(--ink);
    background: #fff;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.field-control input::placeholder {
    color: #a5adba;
}

.field-control input:hover {
    border-color: #aab2bf;
}

.field-control input:focus {
    border-color: #dda500;
    background: #fffefa;
    box-shadow: 0 0 0 4px rgba(242, 185, 31, .18);
}

.password-toggle {
    position: absolute;
    right: 7px;
    top: 7px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    color: #667085;
    background: transparent;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--ink);
    background: #f2f4f7;
    outline: none;
}

.remember-option {
    display: flex;
    align-items: center;
    gap: 11px;
    width: fit-content;
    margin: 3px 0 22px;
    color: #344054;
    cursor: pointer;
    user-select: none;
}

.remember-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.checkmark {
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    border: 1px solid #c8ced8;
    border-radius: 6px;
    color: transparent;
    background: #fff;
    font-size: 10px;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.remember-option:hover .checkmark {
    border-color: #d6a000;
}

.remember-option input:checked + .checkmark {
    border-color: var(--gold-dark);
    color: #17120a;
    background: var(--gold);
}

.remember-option input:focus-visible + .checkmark {
    box-shadow: 0 0 0 4px rgba(242, 185, 31, .2);
}

.remember-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}

.remember-copy strong {
    font-size: 13px;
}

.remember-copy small {
    color: #98a2b3;
    font-size: 11px;
}

.submit-button {
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    border: 0;
    border-radius: 11px;
    color: #17120a;
    background: linear-gradient(135deg, #ffd65a, var(--gold));
    box-shadow: 0 12px 25px rgba(217, 154, 0, .24);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, filter .2s;
}

.submit-button:hover {
    transform: translateY(-2px);
    filter: saturate(1.08);
    box-shadow: 0 16px 30px rgba(217, 154, 0, .3);
}

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

.submit-button:focus-visible {
    outline: 3px solid rgba(17, 24, 39, .32);
    outline-offset: 3px;
}

.submit-button i {
    font-size: 12px;
}

.help-note {
    display: flex;
    gap: 11px;
    margin-top: 27px;
    padding: 14px;
    border-radius: 10px;
    color: #667085;
    background: var(--soft);
    font-size: 12px;
    line-height: 1.55;
}

.help-note i {
    margin-top: 3px;
    color: #8a6812;
}

.help-note p {
    margin: 0;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 30px;
    color: #98a2b3;
    font-size: 11px;
}

footer a {
    color: #5b6472;
    font-weight: 700;
    text-decoration: none;
}

footer a:hover {
    color: var(--gold-dark);
}

@media (max-width: 880px) {
    .login-page {
        padding: 24px;
    }

    .login-shell {
        max-width: 570px;
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .brand-panel {
        display: none;
    }

    .form-panel {
        padding: 42px 48px;
    }

    .mobile-brand {
        width: 205px;
        display: block;
        margin: 0 0 40px;
    }
}

@media (max-width: 520px) {
    .login-page {
        display: block;
        min-height: 100svh;
        padding: 0;
        background: #fff;
    }

    .login-shell {
        width: 100%;
        min-height: 100svh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .form-panel {
        width: 100%;
        align-items: start;
        padding: 28px 24px 24px;
    }

    .mobile-brand {
        width: 180px;
        margin-bottom: 46px;
    }

    .form-heading h2 {
        font-size: 26px;
    }

    .intro {
        margin-bottom: 27px;
    }

    footer {
        flex-direction: column;
        gap: 8px;
        padding-bottom: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
