/* ============================================================
 *  AUTH OVERLAY
 * ============================================================ */
#auth-overlay {
    position: fixed; inset: 0;
    background: var(--bg-header);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.auth-card {
    background: var(--bg-surface);
    padding: 48px 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-modal);
    max-width: 420px;
    width: 90%;
    text-align: center;
}

.auth-logo { font-size: 3rem; line-height: 1; margin-bottom: 12px; }

.auth-card h1 {
    font-size: 1.6rem;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.auth-subtitle {
    color: var(--text-soft);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.form-group {
    text-align: left;
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border-bw);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    outline: none;
    background: var(--bg-input);
    color: var(--text-primary);
}

.form-group input:focus { border-color: var(--accent); }

.btn-primary {
    width: 100%;
    padding: 13px;
    background: var(--accent);
    color: var(--text-on-accent);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}
.btn-primary:hover  { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-active); }
.btn-primary:disabled { background: var(--text-faint); cursor: not-allowed; }

.auth-hint {
    font-size: 0.82rem;
    color: var(--text-soft);
    margin-bottom: 16px;
    line-height: 1.5;
}

.auth-qr {
    display: block;
    margin: 0 auto 20px;
    width: 176px;
    height: 176px;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
    border: 1.5px solid var(--border-bw);
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 0.82rem;
    cursor: pointer;
    margin-top: 8px;
    width: 100%;
    padding: 4px;
    transition: color 0.2s;
}
.btn-text:hover { color: var(--text-secondary); }

.auth-status {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--danger);
    min-height: 20px;
}
