/* ===== Auth Pages ===== */
.auth-wrapper {
    min-height: calc(100vh - 120px);
    display: flex; align-items: center; justify-content: center;
    background: #f8f9fa; padding: 2rem 1rem;
}

.auth-card {
    background: white; border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2.5rem 2rem; width: 100%; max-width: 440px;
}

.auth-card-wide { max-width: 600px; }

.auth-logo { text-align: center; margin-bottom: 1.5rem; }

.auth-title {
    font-size: 1.6rem; font-weight: 800; color: #111827;
    text-align: center; margin-bottom: 0.4rem; letter-spacing: -0.3px;
}

.auth-subtitle {
    font-size: 13px; color: #6b7280; text-align: center;
    margin-bottom: 1.5rem; line-height: 1.5;
}

.auth-error {
    background: #fef2f2; border: 1px solid #fecaca;
    color: #dc2626; border-radius: 8px;
    padding: 10px 14px; font-size: 13px;
    margin-bottom: 1rem;
}

.auth-field { margin-bottom: 1rem; }
.auth-field label {
    display: block; font-size: 13px; font-weight: 600;
    color: #374151; margin-bottom: 6px;
}

.auth-input {
    border-radius: 8px; border: 1.5px solid #e5e7eb;
    font-size: 14px; padding: 10px 14px;
    transition: border-color 0.15s;
}
.auth-input:focus {
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15,23,42,0.08);
}
.auth-input:disabled { background: #f9fafb; opacity: 0.7; }

.auth-pass-wrap { position: relative; }
.auth-pass-wrap .auth-input { padding-right: 44px; }
.auth-pass-toggle {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    font-size: 16px; padding: 4px;
}

.auth-btn {
    width: 100%; background: #0f172a; color: white;
    border: none; border-radius: 10px; padding: 13px;
    font-size: 15px; font-weight: 700; cursor: pointer;
    transition: background 0.2s; margin-top: 0.5rem;
}
.auth-btn:hover:not(:disabled) { background: #1e293b; }
.auth-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 1.25rem 0; color: #9ca3af; font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
    content: ''; flex: 1; height: 1px; background: #e5e7eb;
}

.auth-footer {
    text-align: center; margin-top: 1.25rem;
    font-size: 13px; color: #6b7280;
}
.auth-footer a { color: #0f172a; font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

.auth-checkbox {
    display: flex; gap: 8px; align-items: flex-start;
}
.auth-checkbox input { margin-top: 3px; flex-shrink: 0; accent-color: #0f172a; }
.auth-checkbox label { font-size: 13px; color: #6b7280; cursor: pointer; line-height: 1.5; }

/* User menu in navbar */
.ri-user-menu {
    display: flex; align-items: center; gap: 8px;
    margin-left: auto; padding: 0 16px;
}
.ri-user-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: #0f172a; color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.ri-user-name { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.9); }
.ri-logout-btn {
    background: none; border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.7); border-radius: 6px;
    padding: 4px 10px; font-size: 12px; cursor: pointer;
    transition: all 0.15s;
}
.ri-logout-btn:hover { background: rgba(255,255,255,0.1); color: white; }

/* Success message */
.auth-success {
    background: #f0fdf4; border: 1px solid #bbf7d0;
    color: #16a34a; border-radius: 8px;
    padding: 10px 14px; font-size: 13px;
    margin-bottom: 1rem;
}

/* ── Steps indicator ─────────────────────────── */
.auth-steps {
    display: flex; align-items: center; justify-content: center;
    gap: 0; margin-bottom: 1.5rem;
}
.auth-step {
    width: 32px; height: 32px; border-radius: 50%;
    background: #e5e7eb; color: #9ca3af;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; transition: all 0.3s;
}
.auth-step.done { background: #0f172a; color: white; }
.auth-step-line { width: 40px; height: 2px; background: #e5e7eb; }

/* PIN input */
.pin-input {
    font-size: 28px; font-weight: 800; letter-spacing: 12px;
    text-align: center; padding: 12px 20px;
}

/* Link button */
.btn-link-plain {
    background: none; border: none; color: #6b7280;
    font-size: 13px; cursor: pointer; padding: 0;
    text-decoration: underline;
}
.btn-link-plain:hover { color: #111827; }

/* Progress bar */
.auth-progress {
    height: 4px; background: #e5e7eb; border-radius: 2px;
    margin-bottom: 6px; overflow: hidden;
}
.auth-progress-bar {
    height: 100%; background: #0f172a;
    border-radius: 2px; transition: width 0.4s ease;
}
.auth-step-label {
    font-size: 12px; color: #9ca3af;
    text-align: center; margin-bottom: 1.25rem;
}
