:root {
    --bg-base:        #0a0f0a;
    --bg-surface:     #111911;
    --bg-card:        #182018;
    --border:         #2a3a2a;
    --border-light:   #354535;
    --gold:           #c9a84c;
    --gold-light:     #e2c36a;
    --gold-dim:       #7a6230;
    --text-primary:   #f0ede6;
    --text-secondary: #8a9a88;
    --text-muted:     #4a5a48;
    --radius-md:      10px;
    --radius-lg:      16px;
    --shadow-card:    0 4px 24px rgba(0,0,0,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-base);
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(20,50,20,0.6) 0%, transparent 65%),
        repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,0.005) 3px, rgba(255,255,255,0.005) 4px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.wordmark { text-align: center; margin-bottom: 40px; }

.wordmark-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.wordmark-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #1c3a1c 0%, #2a5a2a 100%);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(201,168,76,0.2), 0 4px 12px rgba(0,0,0,0.4);
}

.wordmark-name {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.wordmark-name span { color: var(--gold); }

.wordmark-tagline {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-card);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.card-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.5;
}

.field { margin-bottom: 18px; }

label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    padding: 11px 14px;
    outline: none;
    transition: border-color 0.15s;
}

input:focus { border-color: var(--gold-dim); }

.error-msg {
    background: rgba(192,57,43,0.12);
    border: 1px solid rgba(192,57,43,0.3);
    border-radius: var(--radius-md);
    color: #e07070;
    font-size: 13px;
    padding: 10px 14px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.success-msg {
    background: rgba(42,90,42,0.2);
    border: 1px solid rgba(42,90,42,0.5);
    border-radius: var(--radius-md);
    color: #7ec87e;
    font-size: 13px;
    padding: 10px 14px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #2a5a2a 0%, #1c3a1c 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--gold-light);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 12px;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    letter-spacing: 0.02em;
    margin-top: 8px;
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.hint {
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

.hint a { color: var(--text-secondary); text-decoration: none; }
.hint a:hover { color: var(--text-primary); }

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: var(--radius-md);
    color: #3c4043;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 11px;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    text-decoration: none;
}

.btn-google:hover { background: #f8f9fa; box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
