/**
 * QMF Auth Scaffolding - v2.1.0
 * UI-only scaffolding for authentication pages (Webmail, etc.)
 * Does NOT handle authentication logic - pure UI/UX
 * 
 * Usage:
 * <body class="qmf-auth-body">
 *   <div class="qmf-auth-card">
 *     <div class="qmf-auth-header">
 *       <img src="logo.png" class="qmf-brand-logo">
 *       <h1 class="qmf-brand-title">AppName</h1>
 *     </div>
 *     <div class="qmf-auth-content">
 *       <!-- Login/register form here -->
 *     </div>
 *   </div>
 * </body>
 */

/* ==================== AUTH BODY ==================== */
.qmf-auth-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Animated mesh background */
.qmf-auth-body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(240, 147, 251, 0.08) 0%, transparent 50%);
    animation: qmf-auth-mesh 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes qmf-auth-mesh {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(3%, -3%) rotate(2deg); }
    66% { transform: translate(-3%, 3%) rotate(-2deg); }
}

/* ==================== AUTH CARD ==================== */
.qmf-auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    margin: 20px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    overflow: hidden;
    animation: qmf-auth-card-appear 0.5s ease-out;
}

@keyframes qmf-auth-card-appear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Dark theme variant */
.qmf-auth-card--dark {
    background: rgba(30, 30, 50, 0.95);
    color: #fff;
}

/* ==================== AUTH HEADER ==================== */
.qmf-auth-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 32px 24px;
    text-align: center;
    position: relative;
}

/* Subtle pattern overlay */
.qmf-auth-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Logo container */
.qmf-auth-logo-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.qmf-brand-logo {
    max-width: 56px;
    max-height: 56px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

/* Light header variant */
.qmf-auth-header--light {
    background: #fff;
}

.qmf-auth-header--light .qmf-brand-logo {
    max-width: 100px;
    max-height: 100px;
}

/* Brand title */
.qmf-brand-title {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-family: 'Poppins', 'Inter', sans-serif;
    position: relative;
    z-index: 1;
}

.qmf-brand-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ==================== AUTH CONTENT ==================== */
.qmf-auth-content {
    padding: 32px 24px;
}

.qmf-auth-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 24px;
    text-align: center;
}

.qmf-auth-card--dark .qmf-auth-title {
    color: #fff;
}

/* ==================== FORM ELEMENTS ==================== */
.qmf-auth-form-group {
    margin-bottom: 20px;
}

.qmf-auth-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.qmf-auth-card--dark .qmf-auth-label {
    color: rgba(255, 255, 255, 0.8);
}

.qmf-auth-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #1a1a2e;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.qmf-auth-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.qmf-auth-input::placeholder {
    color: #9ca3af;
}

.qmf-auth-card--dark .qmf-auth-input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.qmf-auth-card--dark .qmf-auth-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.3);
}

/* Input with icon */
.qmf-auth-input-wrapper {
    position: relative;
}

.qmf-auth-input-wrapper .qmf-auth-input {
    padding-left: 48px;
}

.qmf-auth-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1rem;
}

/* ==================== BUTTONS ==================== */
.qmf-auth-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qmf-auth-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.qmf-auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.qmf-auth-btn-primary:active {
    transform: translateY(0);
}

.qmf-auth-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.qmf-auth-btn-secondary:hover {
    background: #e5e7eb;
}

.qmf-auth-card--dark .qmf-auth-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.qmf-auth-card--dark .qmf-auth-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ==================== LINKS & TEXT ==================== */
.qmf-auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.qmf-auth-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.qmf-auth-text {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    margin-top: 16px;
}

.qmf-auth-card--dark .qmf-auth-text {
    color: rgba(255, 255, 255, 0.7);
}

/* ==================== DIVIDER ==================== */
.qmf-auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.qmf-auth-divider::before,
.qmf-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.qmf-auth-divider span {
    padding: 0 16px;
    font-size: 0.85rem;
    color: #9ca3af;
}

.qmf-auth-card--dark .qmf-auth-divider::before,
.qmf-auth-card--dark .qmf-auth-divider::after {
    background: rgba(255, 255, 255, 0.2);
}

/* ==================== SOCIAL LOGIN ==================== */
.qmf-auth-social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.qmf-auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #374151;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qmf-auth-social-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.qmf-auth-card--dark .qmf-auth-social-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.qmf-auth-card--dark .qmf-auth-social-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ==================== MESSAGES ==================== */
.qmf-auth-message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.875rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qmf-auth-message--error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.qmf-auth-message--success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.qmf-auth-message--warning {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.qmf-auth-message--info {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

/* ==================== FOOTER ==================== */
.qmf-auth-footer {
    padding: 16px 24px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.qmf-auth-footer-text {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
}

.qmf-auth-card--dark .qmf-auth-footer {
    background: rgba(0, 0, 0, 0.2);
    border-top-color: rgba(255, 255, 255, 0.1);
}

.qmf-auth-card--dark .qmf-auth-footer-text {
    color: rgba(255, 255, 255, 0.5);
}

/* ==================== LOADING STATE ==================== */
.qmf-auth-loading {
    pointer-events: none;
    opacity: 0.7;
}

.qmf-auth-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: qmf-auth-spin 0.8s linear infinite;
}

@keyframes qmf-auth-spin {
    to { transform: rotate(360deg); }
}

/* ==================== CHECKBOX ==================== */
.qmf-auth-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qmf-auth-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    accent-color: #667eea;
}

.qmf-auth-checkbox-label {
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
}

.qmf-auth-card--dark .qmf-auth-checkbox-label {
    color: rgba(255, 255, 255, 0.7);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 480px) {
    .qmf-auth-card {
        margin: 16px;
        border-radius: 20px;
    }
    
    .qmf-auth-header {
        padding: 24px 20px;
    }
    
    .qmf-auth-content {
        padding: 24px 20px;
    }
    
    .qmf-auth-logo-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .qmf-brand-logo {
        max-width: 48px;
        max-height: 48px;
    }
    
    .qmf-brand-title {
        font-size: 1.5rem;
    }
}

/* ==================== WEBMAIL SPECIFIC ==================== */
.qmf-auth-body--webmail {
    /* Webmail specific overrides if needed */
}

.qmf-auth-body--webmail .qmf-auth-header {
    background: linear-gradient(135deg, #1a1a3e 0%, #302b63 100%);
}

/* Logo variant for light backgrounds */
.qmf-auth-logo-light-bg {
    background: linear-gradient(135deg, #1a1a3e 0%, #302b63 100%);
    padding: 16px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.qmf-auth-logo-light-bg .qmf-brand-logo {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* ==================== THEME VARIANTS ==================== */

/* ---------- LIGHT THEME ---------- */
.qmf-auth-body--light {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.qmf-auth-body--light::before {
    background: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.08) 0%, transparent 40%);
}

.qmf-auth-body--light .qmf-auth-card {
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.qmf-auth-body--light .qmf-auth-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ---------- DARK THEME ---------- */
.qmf-auth-body--dark {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a2e 50%, #16213e 100%);
}

.qmf-auth-body--dark::before {
    background: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.1) 0%, transparent 40%);
}

.qmf-auth-body--dark .qmf-auth-card {
    background: rgba(30, 30, 50, 0.95);
    color: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.qmf-auth-body--dark .qmf-auth-header {
    background: linear-gradient(135deg, #1e1e3f 0%, #2d2d5a 100%);
}

.qmf-auth-body--dark .qmf-auth-title {
    color: #fff;
}

.qmf-auth-body--dark .qmf-auth-label {
    color: rgba(255, 255, 255, 0.8);
}

.qmf-auth-body--dark .qmf-auth-input {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.qmf-auth-body--dark .qmf-auth-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.25);
}

.qmf-auth-body--dark .qmf-auth-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.qmf-auth-body--dark .qmf-auth-text {
    color: rgba(255, 255, 255, 0.6);
}

.qmf-auth-body--dark .qmf-auth-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.qmf-auth-body--dark .qmf-auth-footer {
    background: rgba(0, 0, 0, 0.3);
    border-top-color: rgba(255, 255, 255, 0.1);
}

.qmf-auth-body--dark .qmf-auth-footer-text {
    color: rgba(255, 255, 255, 0.4);
}

.qmf-auth-body--dark .qmf-auth-divider::before,
.qmf-auth-body--dark .qmf-auth-divider::after {
    background: rgba(255, 255, 255, 0.15);
}

.qmf-auth-body--dark .qmf-auth-divider span {
    color: rgba(255, 255, 255, 0.5);
}

.qmf-auth-body--dark .qmf-auth-social-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.qmf-auth-body--dark .qmf-auth-checkbox-label {
    color: rgba(255, 255, 255, 0.7);
}

/* ---------- OCEAN THEME ---------- */
.qmf-auth-body--ocean {
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 50%, #90e0ef 100%);
}

.qmf-auth-body--ocean::before {
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(0, 119, 182, 0.15) 0%, transparent 40%);
}

.qmf-auth-body--ocean .qmf-auth-header {
    background: linear-gradient(135deg, #023e8a 0%, #0077b6 100%);
}

.qmf-auth-body--ocean .qmf-auth-btn-primary {
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.4);
}

.qmf-auth-body--ocean .qmf-auth-link {
    color: #0077b6;
}

.qmf-auth-body--ocean .qmf-auth-input:focus {
    border-color: #0077b6;
    box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.15);
}

/* ---------- SUNSET THEME ---------- */
.qmf-auth-body--sunset {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 50%, #ff9ff3 100%);
}

.qmf-auth-body--sunset::before {
    background: 
        radial-gradient(circle at 20% 40%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(255, 107, 107, 0.15) 0%, transparent 40%);
}

.qmf-auth-body--sunset .qmf-auth-header {
    background: linear-gradient(135deg, #ee5a5a 0%, #f093fb 100%);
}

.qmf-auth-body--sunset .qmf-auth-btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.qmf-auth-body--sunset .qmf-auth-link {
    color: #ee5a5a;
}

.qmf-auth-body--sunset .qmf-auth-input:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.15);
}

/* ---------- FOREST THEME ---------- */
.qmf-auth-body--forest {
    background: linear-gradient(135deg, #2d6a4f 0%, #40916c 50%, #74c69d 100%);
}

.qmf-auth-body--forest::before {
    background: 
        radial-gradient(circle at 25% 35%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 75% 65%, rgba(45, 106, 79, 0.15) 0%, transparent 40%);
}

.qmf-auth-body--forest .qmf-auth-header {
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
}

.qmf-auth-body--forest .qmf-auth-btn-primary {
    background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%);
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.4);
}

.qmf-auth-body--forest .qmf-auth-link {
    color: #2d6a4f;
}

.qmf-auth-body--forest .qmf-auth-input:focus {
    border-color: #40916c;
    box-shadow: 0 0 0 4px rgba(64, 145, 108, 0.15);
}

/* ---------- MIDNIGHT THEME ---------- */
.qmf-auth-body--midnight {
    background: linear-gradient(135deg, #191919 0%, #2c2c54 50%, #474787 100%);
}

.qmf-auth-body--midnight::before {
    background: 
        radial-gradient(circle at 30% 20%, rgba(71, 71, 135, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(44, 44, 84, 0.2) 0%, transparent 40%);
}

.qmf-auth-body--midnight .qmf-auth-card {
    background: rgba(25, 25, 25, 0.95);
    color: #fff;
}

.qmf-auth-body--midnight .qmf-auth-header {
    background: linear-gradient(135deg, #2c2c54 0%, #474787 100%);
}

.qmf-auth-body--midnight .qmf-auth-title {
    color: #fff;
}

.qmf-auth-body--midnight .qmf-auth-label {
    color: rgba(255, 255, 255, 0.8);
}

.qmf-auth-body--midnight .qmf-auth-input {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.qmf-auth-body--midnight .qmf-auth-btn-primary {
    background: linear-gradient(135deg, #474787 0%, #706fd3 100%);
    box-shadow: 0 4px 15px rgba(71, 71, 135, 0.4);
}

.qmf-auth-body--midnight .qmf-auth-text {
    color: rgba(255, 255, 255, 0.6);
}

.qmf-auth-body--midnight .qmf-auth-footer {
    background: rgba(0, 0, 0, 0.3);
    border-top-color: rgba(255, 255, 255, 0.1);
}

.qmf-auth-body--midnight .qmf-auth-footer-text {
    color: rgba(255, 255, 255, 0.4);
}

/* ---------- CUSTOM COLOR VARIABLES ---------- */
.qmf-auth-body--custom {
    --qmf-auth-bg-start: #667eea;
    --qmf-auth-bg-mid: #764ba2;
    --qmf-auth-bg-end: #667eea;
    --qmf-auth-header-start: #667eea;
    --qmf-auth-header-end: #764ba2;
    --qmf-auth-primary: #667eea;
    --qmf-auth-primary-hover: #5a6fd6;
    --qmf-auth-card-bg: rgba(255, 255, 255, 0.98);
    --qmf-auth-text: #1a1a2e;
    --qmf-auth-text-muted: #6b7280;
    
    background: linear-gradient(135deg, var(--qmf-auth-bg-start) 0%, var(--qmf-auth-bg-mid) 50%, var(--qmf-auth-bg-end) 100%);
}

.qmf-auth-body--custom .qmf-auth-card {
    background: var(--qmf-auth-card-bg);
    color: var(--qmf-auth-text);
}

.qmf-auth-body--custom .qmf-auth-header {
    background: linear-gradient(135deg, var(--qmf-auth-header-start) 0%, var(--qmf-auth-header-end) 100%);
}

.qmf-auth-body--custom .qmf-auth-btn-primary {
    background: linear-gradient(135deg, var(--qmf-auth-primary) 0%, var(--qmf-auth-header-end) 100%);
}

.qmf-auth-body--custom .qmf-auth-link {
    color: var(--qmf-auth-primary);
}

.qmf-auth-body--custom .qmf-auth-input:focus {
    border-color: var(--qmf-auth-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

/* ==================== PASSWORD VISIBILITY TOGGLE ==================== */
.qmf-auth-password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qmf-auth-password-toggle:hover {
    color: #667eea;
}

.qmf-auth-body--dark .qmf-auth-password-toggle {
    color: rgba(255, 255, 255, 0.5);
}

.qmf-auth-body--dark .qmf-auth-password-toggle:hover {
    color: #667eea;
}

/* ==================== TWO FACTOR AUTH ==================== */
.qmf-auth-2fa-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
}

.qmf-auth-2fa-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #1a1a2e;
    transition: all 0.2s ease;
}

.qmf-auth-2fa-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.qmf-auth-body--dark .qmf-auth-2fa-input {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ==================== CAPTCHA CONTAINER ==================== */
.qmf-auth-captcha {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* ==================== TERMS CHECKBOX ==================== */
.qmf-auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0;
}

.qmf-auth-terms-text {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
}

.qmf-auth-body--dark .qmf-auth-terms-text {
    color: rgba(255, 255, 255, 0.6);
}
