@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --ink: #1a1814; --ink-2: #4a4540; --ink-3: #9a9088;
    --paper: #faf8f4; --paper-2: #f3ede3; --paper-3: #e8e0d0;
    --accent: #c4692a; --red: #b02b2b; --green: #2a6e3e;
    --border: rgba(26,24,20,0.11); --border-2: rgba(26,24,20,0.20);
}
@media (prefers-color-scheme: dark) { :root {
        --ink: #f0ece4; --ink-2: #c0b8b0; --ink-3: #706860;
        --paper: #1c1a16; --paper-2: #242018; --paper-3: #2e2a22;
        --accent: #e07838; --red: #e05050; --green: #5aad7e;
        --border: rgba(240,236,228,0.09); --border-2: rgba(240,236,228,0.17);
}}
body { font-family: 'Source Serif 4', Georgia, serif; background: var(--paper); color: var(--ink); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.container { width: 100%; max-width: 420px; }
.brand { text-align: center; margin-bottom: 32px; }
.brand-title { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; letter-spacing: -0.4px; color: var(--ink); text-decoration: none; display: block; }
.brand-sub { font-size: 12px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 300; margin-top: 4px; display: block; }
.card { background: var(--paper-2); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; box-shadow: 0 4px 24px rgba(26,24,20,0.09); }
.card-header { padding: 20px 24px 16px; border-bottom: 1px solid var(--border); background: var(--paper-3); }
.card-header h2 { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 600; color: var(--ink); }
.card-header p { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.card-body { padding: 24px; }
.field { margin-bottom: 16px; }
label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 6px; font-weight: 300; }
input { width: 100%; padding: 11px 14px; background: var(--paper); border: 1px solid var(--border-2); border-radius: 6px; font-family: 'Source Serif 4', serif; font-size: 15px; color: var(--ink); outline: none; transition: border-color 0.14s; }
input:focus { border-color: var(--accent); }
.btn { width: 100%; padding: 13px; background: var(--ink); color: var(--paper); border: none; border-radius: 6px; cursor: pointer; font-family: 'Source Serif 4', serif; font-size: 15px; font-weight: 600; margin-top: 4px; transition: all 0.14s; }
.btn:hover { opacity: 0.85; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,24,20,0.18); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.alert { display: none; padding: 10px 14px; font-size: 13px; border-radius: 0 5px 5px 0; margin-bottom: 14px; border-left-width: 3px; border-left-style: solid; }
.alert.error { background: #fceaea; border-color: var(--red); color: var(--red); }
.alert.success { background: #e8f5ee; border-color: var(--green); color: var(--green); }
@media (prefers-color-scheme: dark) { .alert.error { background: #2e1a1a; } .alert.success { background: #1a2e22; } }
.back-link { display: block; text-align: center; margin-top: 16px; font-size: 13px; color: var(--ink-3); text-decoration: none; transition: color 0.12s; }
.back-link:hover { color: var(--accent); }
