/* Auth pages: login and profile */

/* ── Login page ───────────────────────────────────────────────────── */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vio-bg-light);
    padding: 20px;
    /* Override body padding from chart.css */
    margin: -15px;
}

.auth-card {
    background: var(--vio-bg);
    border: 1px solid var(--vio-border);
    border-radius: 16px;
    padding: 40px 36px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.auth-logo {
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--vio-text);
    text-decoration: none;
}

.auth-logo:hover {
    color: var(--vio-primary);
}

.onboarding-logo {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--vio-text, #180c06);
    text-decoration: none;
}

.onboarding-logo:hover {
    color: var(--vio-primary, #7130C9);
}

.auth-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--vio-text);
    margin: 0 0 6px 0;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--vio-text-muted);
    margin: 0 0 28px 0;
}

.auth-error {
    background: #ffe7eb;
    color: var(--vio-error);
    border: 1px solid var(--vio-error);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: left;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: var(--vio-bg);
    border: 1px solid var(--vio-border);
    border-radius: 8px;
    font-family: var(--vio-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--vio-text);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.btn-google:hover {
    background: var(--vio-bg-light);
    border-color: #9b9392;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* ── Profile page ─────────────────────────────────────────────────── */

.profile-card {
    background: var(--vio-bg);
    border: 1px solid var(--vio-border);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 28px 20px;
    background: linear-gradient(135deg, #f8f5ff 0%, #f2e5ff 100%);
    border-bottom: 1px solid var(--vio-border);
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(113, 48, 201, 0.2);
    object-fit: cover;
    flex-shrink: 0;
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--vio-text);
    margin: 0 0 4px 0;
}

.profile-email {
    font-size: 13px;
    color: var(--vio-text-muted);
    margin: 0 0 8px 0;
}

.profile-badge-verified {
    display: inline-block;
    background: #d6fada;
    color: #0d441c;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.profile-section {
    padding: 24px 28px;
    border-bottom: 1px solid var(--vio-border);
}

.profile-section h2 {
    font-size: 13px;
    font-weight: 600;
    color: var(--vio-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 16px 0;
}

.profile-field {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid #f0ebe9;
    font-size: 14px;
}

.profile-field:last-child {
    border-bottom: none;
}

.profile-field-label {
    color: var(--vio-text-muted);
    font-weight: 500;
    flex-shrink: 0;
    margin-right: 16px;
}

.profile-field-value {
    color: var(--vio-text);
    text-align: right;
}

.profile-sub {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 11px;
    color: var(--vio-text-muted);
}

.profile-link {
    display: inline-block;
    color: var(--vio-primary, #7130C9);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
}

.profile-link:hover {
    text-decoration: underline;
}

.profile-actions {
    padding: 20px 28px;
    display: flex;
    justify-content: flex-end;
}
