/* ============================================
   Design tokens
   Concept: "A private invitation" — the site feels like
   stepping past a velvet rope into something kept just for you.
   ============================================ */
:root {
    --bg-deep:      #11131A;   /* near-black charcoal, not pure black */
    --bg-card:      #181B24;
    --gold:         #D4A24E;   /* warm seal-wax gold, the signature accent */
    --gold-soft:    rgba(212, 162, 78, 0.18);
    --cream:        #F3EEE2;   /* primary text */
    --slate:        #8C8FA0;   /* secondary text */
    --line:         #2A2E3A;
    --error:        #E0796B;
    --success:      #6FAE8A;

    --font-display: 'Fraunces', serif;
    --font-body:    'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(ellipse 800px 500px at 50% -10%, var(--gold-soft), transparent 60%), var(--bg-deep);
    color: var(--cream);
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-wrap {
    width: 100%;
    max-width: 420px;
}

/* The seal — signature element. A small glowing emblem that suggests
   a wax seal being broken open: the visual metaphor for "unlocking" a surprise. */
.seal {
    width: 56px;
    height: 56px;
    margin: 0 auto 28px;
    border-radius: 50%;
    background: linear-gradient(155deg, #E3B563, var(--gold) 60%, #9C7330);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(212,162,78,0.3), 0 8px 28px -4px rgba(212,162,78,0.45);
    position: relative;
}
.seal::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(212,162,78,0.25);
}
.seal svg { width: 24px; height: 24px; }

.eyebrow {
    text-align: center;
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 10px;
    font-weight: 600;
}

h1.headline {
    text-align: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 30px;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
    color: var(--cream);
}

p.subline {
    text-align: center;
    color: var(--slate);
    font-size: 14.5px;
    margin: 0 0 32px;
    line-height: 1.5;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 13px;
    color: var(--slate);
    margin-bottom: 7px;
    font-weight: 500;
}

.field input {
    width: 100%;
    background: #0F1118;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 12px 14px;
    color: var(--cream);
    font-size: 15px;
    font-family: var(--font-body);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder { color: #565A68; }

.field input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

.btn-primary {
    width: 100%;
    background: linear-gradient(155deg, #E3B563, var(--gold) 70%);
    color: #1A1306;
    border: none;
    border-radius: 9px;
    padding: 13px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    margin-top: 6px;
    transition: filter 0.15s ease, transform 0.1s ease;
}

.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:active { transform: scale(0.99); }

.switch-link {
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
    color: var(--slate);
}
.switch-link a { color: var(--gold); text-decoration: none; font-weight: 600; }
.switch-link a:hover { text-decoration: underline; }

.alert {
    border-radius: 10px;
    padding: 13px 15px;
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.5;
    border: 1px solid transparent;
}
.alert-error   { background: rgba(224,121,107,0.12); color: #F0A99D; border-color: rgba(224,121,107,0.3); }
.alert-success { background: rgba(111,174,138,0.12); color: #9AD0B5; border-color: rgba(111,174,138,0.3); }
.alert-pending { background: var(--gold-soft); color: #E3C58A; border-color: rgba(212,162,78,0.35); }

@media (prefers-reduced-motion: no-preference) {
    .card { animation: rise 0.45s ease both; }
    .seal { animation: glow 2.4s ease-in-out infinite; }
}
@keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes glow {
    0%, 100% { box-shadow: 0 0 0 1px rgba(212,162,78,0.3), 0 8px 28px -4px rgba(212,162,78,0.45); }
    50%      { box-shadow: 0 0 0 1px rgba(212,162,78,0.45), 0 8px 36px -2px rgba(212,162,78,0.65); }
}

@media (max-width: 420px) {
    .card { padding: 26px 20px; border-radius: 14px; }
    h1.headline { font-size: 26px; }
}
