/* filepath: app/static/css/auth.css
   Auth-specific styles (topbar user info + login page).
   Loaded in addition to styles.css. */

/* ----- Topbar user widget ----- */
.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    margin-right: 0.5rem;
}
.topbar-user-name {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: var(--color-text-muted, #6b7280);
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.topbar-logout-form { margin: 0; display: inline-flex; }
.btn-ghost {
    background: transparent;
    color: var(--color-text, #111827);
    border: 1px solid var(--color-border, #e5e7eb);
}
.btn-ghost:hover { background: var(--color-bg-hover, #f3f4f6); }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.85rem; }

/* ----- Login page ----- */
.auth-shell {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--color-surface, #ffffff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius, 12px);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.auth-brand { text-align: center; margin-bottom: 1.5rem; }
.auth-brand .topbar-logo { margin: 0 auto 0.75rem; }
.auth-title { font-size: 1.25rem; margin: 0; }
.auth-subtitle { color: var(--color-text-muted, #6b7280); margin: 0.25rem 0 0; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-form .field { display: flex; flex-direction: column; gap: 0.35rem; }
.auth-form .field-label { font-size: 0.85rem; font-weight: 500; }
.auth-form input[type=email],
.auth-form input[type=password] {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 8px;
    font: inherit;
    background: var(--color-bg, #fff);
}
.auth-form input:focus {
    outline: none;
    border-color: var(--color-primary, #4f46e5);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.field-checkbox {
    flex-direction: row !important;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted, #6b7280);
}
.btn-block { width: 100%; padding: 0.7rem 1rem; }
.auth-flashes { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.flash {
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid transparent;
}
.flash-error { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.flash-info  { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.auth-hint {
    margin-top: 1.25rem;
    font-size: 0.8rem;
    color: var(--color-text-muted, #6b7280);
    text-align: center;
}
