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

body {
    font-family: system-ui, sans-serif;
    background: #0f0f0f;
    color: #e0e0e0;
    min-height: 100vh;
}

/* ── Auth layout ─────────────────────────────────────────── */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.auth-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 420px;
}

.auth-brand { margin-bottom: 1.5rem; }
.brand-name { font-size: 1.2rem; font-weight: 700; color: #c9a84c; }

.auth-heading { font-size: 1.4rem; font-weight: 600; margin-bottom: 0.25rem; }
.auth-sub     { font-size: 0.875rem; color: #888; margin-bottom: 1.5rem; }
.auth-footer  { font-size: 0.8rem; color: #666; margin-top: 1rem; text-align: center; }
.auth-footer a { color: #c9a84c; text-decoration: none; }

/* ── Step indicator ──────────────────────────────────────── */
.step-indicator { display: flex; gap: 6px; margin-bottom: 1.5rem; }
.step-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #2a2a2a;
    transition: background 0.2s;
}
.step-dot.active { background: #c9a84c; }

/* ── Forms ───────────────────────────────────────────────── */
.form-group   { margin-bottom: 1rem; }
.form-label   { display: block; font-size: 0.8rem; color: #888; margin-bottom: 0.4rem; }
.form-input   {
    width: 100%; padding: 0.65rem 0.75rem;
    background: #111; border: 1px solid #2a2a2a;
    border-radius: 8px; color: #e0e0e0;
    font-size: 0.95rem; outline: none;
    transition: border-color 0.15s;
}
.form-input:focus { border-color: #c9a84c; }

.field-error   { display: block; font-size: 0.75rem; color: #e74c3c; margin-top: 0.3rem; }
.field-hint    { display: block; font-size: 0.75rem; color: #888;    margin-top: 0.3rem; }
.form-error    { font-size: 0.85rem; color: #e74c3c; margin-bottom: 0.75rem; }
.form-success  { font-size: 0.85rem; color: #2ecc71; margin-bottom: 0.75rem; }

/* Email input */
.email-input-group { position: relative; }
.email-domain {
    position: absolute; right: 0.75rem; top: 0.65rem;
    font-size: 0.9rem; color: #666; pointer-events: none;
}

/* Password strength */
.password-strength { height: 4px; background: #2a2a2a; border-radius: 2px; margin-top: 0.5rem; overflow: hidden; }
.strength-bar      { height: 100%; width: 0; border-radius: 2px; transition: width 0.3s, background 0.3s; }

/* Checkbox */
.checkbox-group  { display: flex; align-items: flex-start; gap: 0.5rem; }
.checkbox-label  { font-size: 0.875rem; color: #aaa; cursor: pointer; }
.checkbox-label input { margin-top: 2px; }

/* Terms box */
.terms-box {
    background: #111; border: 1px solid #2a2a2a;
    border-radius: 8px; padding: 1rem;
    font-size: 0.85rem; color: #888;
    margin-bottom: 1rem;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary, .btn-ghost, .btn-danger {
    width: 100%; padding: 0.7rem 1rem;
    border-radius: 8px; border: none;
    font-size: 0.95rem; font-weight: 500;
    cursor: pointer; margin-top: 0.5rem;
    transition: opacity 0.15s;
}
.btn-primary { background: #c9a84c; color: #0f0f0f; }
.btn-ghost   { background: transparent; border: 1px solid #2a2a2a; color: #aaa; }
.btn-danger  { background: #2d1a1a; border: 1px solid #5a2020; color: #e74c3c; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm { width: auto; padding: 0.3rem 0.75rem; font-size: 0.8rem; }

/* ── Dashboard ───────────────────────────────────────────── */
.dashboard-container { max-width: 600px; margin: 0 auto; padding: 2rem 1rem; }
.dashboard-header    { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.dashboard-greeting  { font-size: 1.4rem; font-weight: 600; }
.dashboard-sub       { font-size: 0.875rem; color: #666; margin-top: 0.2rem; }

.dashboard-cards { display: flex; flex-direction: column; gap: 0.75rem; }
.dash-card {
    display: flex; align-items: center; gap: 1rem;
    background: #1a1a1a; border: 1px solid #2a2a2a;
    border-radius: 10px; padding: 1rem 1.25rem;
    cursor: pointer; transition: border-color 0.15s;
}
.dash-card:hover { border-color: #c9a84c; }
.dash-card-icon  { font-size: 1.2rem; }
.dash-card-label { flex: 1; font-size: 0.95rem; }
.dash-card-arrow { color: #444; }

/* ── Account pages ───────────────────────────────────────── */
.account-container { max-width: 600px; margin: 0 auto; padding: 2rem 1rem; }
.account-header    { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.account-title     { font-size: 1.3rem; font-weight: 600; }
.back-link         { color: #888; text-decoration: none; font-size: 0.9rem; }
.back-link:hover   { color: #c9a84c; }

.section-card {
    background: #1a1a1a; border: 1px solid #2a2a2a;
    border-radius: 10px; padding: 1.5rem;
}
.section-title { font-size: 1rem; font-weight: 600; margin-bottom: 1.25rem; }

/* Sessions */
.session-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.85rem 1rem; background: #1a1a1a;
    border: 1px solid #2a2a2a; border-radius: 8px; margin-bottom: 0.5rem;
}
.session-item.current { border-color: #c9a84c33; }
.session-info   { display: flex; flex-direction: column; gap: 0.2rem; }
.session-device { font-size: 0.875rem; }
.session-meta   { font-size: 0.75rem; color: #666; }
.session-badge  { font-size: 0.7rem; color: #c9a84c; margin-top: 0.2rem; }
.danger-zone    { margin-top: 1.5rem; }

.loading-text   { color: #666; font-size: 0.875rem; }
.empty-text     { color: #666; font-size: 0.875rem; }
.error-text     { color: #e74c3c; font-size: 0.875rem; }
