:root {
    --red: #b3262e;
    --red-dark: #8f1e25;
    --green: #176044;
    --green-soft: #eaf5ef;
    --gold: #d7aa52;
    --ink: #27302f;
    --muted: #747d7b;
    --line: #e6e9e7;
    --paper: #ffffff;
    --bg: #f6f7f5;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 10%, rgba(179,38,46,.07), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(23,96,68,.07), transparent 30%),
        var(--bg);
}
a { color: inherit; }
.page-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-snow {
    width: 43px; height: 43px; border-radius: 14px;
    display: grid; place-items: center;
    color: #fff; background: var(--red);
    font-size: 23px; box-shadow: 0 7px 18px rgba(179,38,46,.18);
}
.brand strong { display: block; font-size: 18px; letter-spacing: -.3px; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.back-link { text-decoration: none; font-size: 13px; font-weight: 700; color: var(--green); }
.back-link:hover { text-decoration: underline; }
.main-content { flex: 1; display: grid; place-items: center; padding: 35px 16px 60px; }
.login-card, .account-card {
    width: min(100%, 470px);
    background: rgba(255,255,255,.96);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 38px;
    box-shadow: 0 22px 60px rgba(40,48,46,.09);
}
.card-top, .account-card { text-align: center; }
.snowflake, .account-icon {
    width: 62px; height: 62px; margin: 0 auto 17px;
    border-radius: 20px; display: grid; place-items: center;
    background: var(--green-soft); color: var(--green);
    font-size: 29px; font-weight: 800;
}
.account-icon { background: #f9efe9; color: var(--red); }
.eyebrow { margin: 0 0 7px; color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: 1.8px; }
h1 { margin: 0; font-size: 31px; letter-spacing: -.8px; }
.card-top p:not(.eyebrow), .lead { margin: 9px 0 28px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.field { margin-top: 19px; }
.field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 750; }
.label-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.label-row a, .register-line a { color: var(--red); font-weight: 750; text-decoration: none; }
.label-row a { font-size: 12px; }
.label-row a:hover, .register-line a:hover { text-decoration: underline; }
input {
    width: 100%; height: 50px; padding: 0 15px;
    border: 1px solid #dfe4e1; border-radius: 13px;
    background: #fbfcfb; color: var(--ink); font: inherit; outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
input:focus { background: #fff; border-color: var(--green); box-shadow: 0 0 0 4px rgba(23,96,68,.10); }
.primary-button, .secondary-button, .text-button {
    display: inline-flex; justify-content: center; align-items: center;
    min-height: 50px; border-radius: 13px; padding: 0 18px;
    text-decoration: none; font-weight: 800; font-size: 14px;
    border: 0; cursor: pointer;
}
.primary-button { color: #fff; background: var(--red); box-shadow: 0 9px 20px rgba(179,38,46,.18); }
.primary-button:hover { background: var(--red-dark); }
.submit { width: 100%; margin-top: 24px; }
.register-line { border-top: 1px solid #edf0ee; margin-top: 25px; padding-top: 22px; text-align: center; color: var(--muted); font-size: 13px; }
.member-badge { display: inline-flex; padding: 7px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 800; }
.actions { display: grid; gap: 10px; margin-top: 28px; }
.secondary-button { background: #f5f7f6; color: var(--green); border: 1px solid #e2e7e4; }
.text-button { background: transparent; color: var(--red); min-height: 40px; }
.error-box { margin: 20px 0 4px; padding: 13px 15px; border-radius: 13px; background: #fff0f0; border: 1px solid #f2cccc; color: #9c252b; font-size: 13px; line-height: 1.55; }
.site-footer { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 20px 0 26px; display: flex; justify-content: space-between; gap: 20px; color: #8a9290; font-size: 11px; }
.site-footer a { color: var(--green); text-decoration: none; font-weight: 700; }
@media (max-width: 560px) {
    .site-header { padding: 16px 0; }
    .back-link { display: none; }
    .login-card, .account-card { padding: 28px 21px; border-radius: 22px; }
    h1 { font-size: 27px; }
    .main-content { padding-top: 20px; }
    .site-footer { flex-direction: column; text-align: center; align-items: center; }
}
