:root {
    --navy-950: #0b1d34;
    --navy-900: #102640;
    --navy-700: #294765;
    --orange: #ff6500;
    --orange-dark: #db5700;
    --orange-soft: #fff0e3;
    --ink: #10213a;
    --muted: #65738a;
    --line: #efddca;
    --canvas: #fff8ed;
    --white: #fffefb;
    --danger: #b52e2e;
    --danger-bg: #fff0f0;
    --success: #008f4c;
    --success-bg: #eaf8f1;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.page-shell {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
}

.site-header,
footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px clamp(24px, 5vw, 76px);
    background: var(--white);
}

.site-header {
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-cart {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: var(--navy-700);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong {
    color: var(--orange);
    font-size: 1.06rem;
    font-weight: 850;
    letter-spacing: 0.04em;
}

.brand-copy small,
.secure-label,
footer {
    color: var(--muted);
    font-size: 0.76rem;
}

.secure-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
}

.secure-label svg {
    width: 20px;
    fill: var(--orange);
}

.login-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    align-items: center;
    gap: clamp(55px, 9vw, 130px);
    width: min(1120px, calc(100% - 48px));
    margin: 45px auto;
}

.welcome-copy {
    max-width: 610px;
}

.section-tag,
.eyebrow {
    color: var(--orange);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.16em;
}

.welcome-copy h1 {
    margin: 18px 0;
    max-width: 620px;
    color: var(--navy-950);
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.welcome-copy > p {
    max-width: 570px;
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.feature-list {
    display: grid;
    gap: 20px;
    margin-top: 42px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item > svg {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 9px;
    border-radius: 10px;
    background: var(--orange-soft);
    fill: var(--orange);
}

.feature-item > span {
    display: grid;
    gap: 3px;
}

.feature-item strong {
    color: var(--navy-900);
    font-size: 0.92rem;
}

.feature-item small {
    color: var(--muted);
    font-size: 0.78rem;
}

.login-card {
    width: 100%;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 22px 60px rgba(16, 33, 58, 0.1);
}

.eyebrow {
    margin: 0 0 10px;
}

.login-card h2 {
    margin: 0;
    color: var(--navy-950);
    font-size: 2.05rem;
    letter-spacing: -0.03em;
}

.card-heading > p:last-child {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

form {
    display: grid;
    gap: 20px;
    margin-top: 32px;
}

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

label {
    color: var(--navy-900);
    font-size: 0.82rem;
    font-weight: 750;
}

.input-wrap {
    position: relative;
}

.input-wrap svg {
    position: absolute;
    top: 50%;
    left: 15px;
    width: 18px;
    fill: #8694a7;
    transform: translateY(-50%);
}

input,
select {
    width: 100%;
    min-height: 50px;
    padding: 13px 14px 13px 46px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fffaf3;
    color: var(--ink);
    font: inherit;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

select {
    appearance: none;
    cursor: pointer;
}

select:disabled {
    cursor: not-allowed;
    color: #9aa6b6;
    background: #f6f0e8;
}

input::placeholder {
    color: #9aa6b6;
}

input:focus,
select:focus {
    border-color: var(--orange);
    outline: none;
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(255, 101, 0, 0.11);
}

button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    border: 0;
    border-radius: 9px;
    background: var(--orange);
    color: var(--white);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(255, 101, 0, 0.22);
    transition: transform 150ms ease, background 150ms ease;
}

button svg {
    width: 18px;
    fill: currentColor;
}

button:hover {
    background: var(--orange-dark);
    transform: translateY(-1px);
}

button:focus-visible {
    outline: 3px solid var(--navy-900);
    outline-offset: 3px;
}

.message {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 23px;
    padding: 12px 14px;
    border-radius: 9px;
}

.message > span {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    min-width: 27px;
    height: 27px;
    padding: 0 5px;
    border-radius: 50%;
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 900;
}

.message > div {
    display: grid;
    gap: 2px;
}

.message strong {
    font-size: 0.82rem;
}

.message small {
    font-size: 0.75rem;
}

.message.error {
    background: var(--danger-bg);
    color: var(--danger);
}

.message.error > span {
    background: var(--danger);
}

.message.success {
    background: var(--success-bg);
    color: var(--success);
}

.message.success > span {
    background: var(--success);
}

.help-text {
    margin: 26px 0 0;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.5;
    text-align: center;
}

footer {
    border-top: 1px solid var(--line);
}

@media (max-width: 850px) {
    .login-main {
        grid-template-columns: 1fr;
        width: min(520px, calc(100% - 30px));
        gap: 30px;
        margin: 32px auto;
    }

    .welcome-copy {
        text-align: center;
    }

    .welcome-copy h1 {
        margin-right: auto;
        margin-left: auto;
        font-size: 2.6rem;
    }

    .welcome-copy > p {
        margin: 0 auto;
    }

    .feature-list {
        display: none;
    }
}

@media (max-width: 520px) {
    .site-header {
        padding: 14px 18px;
    }

    .secure-label,
    .brand-copy small,
    footer span:last-child {
        display: none;
    }

    .brand-cart {
        width: 36px;
        height: 36px;
    }

    .login-main {
        width: calc(100% - 20px);
        margin: 22px auto;
    }

    .welcome-copy h1 {
        font-size: 2.1rem;
    }

    .welcome-copy > p {
        font-size: 0.92rem;
    }

    .login-card {
        padding: 30px 22px;
        border-radius: 14px;
    }

    footer {
        padding: 15px 18px;
    }
}

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