@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    --bg: #f4f5f3;
    --surface: #ffffff;
    --border: #e2e4df;
    --text: #16181c;
    --text-muted: #6d716b;
    --accent: #0f6e56;
    --accent-dark: #0a5343;
    --accent-soft: #e4f3ee;
    --success: #1a7a4c;
    --success-soft: #e6f4eb;
    --danger: #b3261e;
    --danger-soft: #fbeae9;
    --radius-pill: 999px;
    --radius-card: 10px;
    --radius-sm: 8px;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 380px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 32px 28px;
}

.auth-card h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 22px;
    margin: 0 0 4px;
}

.auth-card p.subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0 0 24px;
}

.field { margin-bottom: 16px; }

.field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.field input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
}

.field input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface);
}

.btn {
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.btn:hover { opacity: 0.85; }
.btn:active { transform: translateY(1px); }

.link-row {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 13px;
}

.link-row a {
    color: var(--accent);
    text-decoration: none;
}

.link-row a:hover { text-decoration: underline; }

.alert {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.alert-error {
    background: var(--danger-soft);
    color: var(--danger);
    border-color: #f0c9c6;
}

.alert-success {
    background: var(--success-soft);
    color: var(--success);
    border-color: #c3e4d0;
}