:root {
    --bg: #0f1419;
    --surface: #1a2332;
    --border: #2d3a4f;
    --text: #e7ecf3;
    --muted: #8b9cb3;
    --accent: #23e5db;
    --accent-dim: #1a9d96;
    --danger: #f87171;
    --pad-x: clamp(0.75rem, 4vw, 1.25rem);
    --radius: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
}
.container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
}
.site-header {
    border-bottom: 1px solid var(--border);
    background: rgba(26, 35, 50, 0.92);
    backdrop-filter: blur(8px);
}
.site-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem var(--pad-x);
    max-width: 720px;
    margin: 0 auto;
}
.brand { text-decoration: none; color: inherit; min-width: 0; }
.brand-domain {
    font-size: clamp(1.05rem, 4.5vw, 1.25rem);
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
}
.brand-domain .olx { color: var(--accent); }
.brand-domain .dot { color: var(--muted); }
.brand-tagline {
    display: block;
    font-size: 0.65rem;
    color: var(--muted);
    margin-top: 0.1rem;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}
.header-user {
    font-size: 0.75rem;
    color: var(--muted);
    max-width: 5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}
.header-user:hover { color: var(--accent); }
@media (min-width: 400px) {
    .header-user { max-width: 8rem; }
}
.btn-header {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    background: var(--accent);
    color: #0f1419;
}
.btn-header.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent-dim);
}
.header-pill {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent);
    border: 1px solid var(--accent-dim);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}
.auth-main {
    padding: 1.5rem var(--pad-x) 2rem;
    max-width: 420px;
    margin: 0 auto;
}
.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.1rem;
}
.auth-card h1 {
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}
.auth-card .sub {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.45;
}
.auth-error {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 0.85rem;
    line-height: 1.4;
}
.auth-success {
    background: rgba(35, 229, 219, 0.1);
    border: 1px solid var(--accent-dim);
    color: var(--accent);
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 0.85rem;
}
.auth-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.3rem;
    margin-top: 0.65rem;
}
.auth-form label:first-of-type { margin-top: 0; }
.auth-form input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 0.95rem;
}
.auth-form input:focus {
    outline: none;
    border-color: var(--accent-dim);
}
.auth-form button {
    width: 100%;
    margin-top: 1rem;
    padding: 0.7rem;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: #0f1419;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
}
.auth-form button:hover { filter: brightness(1.08); }
.auth-switch {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}
.auth-switch a { color: var(--accent); text-decoration: none; font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }
