/* ============================================================
   QR SaaS Platform — Auth Pages CSS
   Clean Enterprise White + Black + Blue Accent Theme
   ============================================================ */

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --primary-border: #bfdbfe;
    
    --bg-main: #ffffff;
    --bg-left: #f8fafc;
    --border: #e2e8f0;
    
    --text: #0f172a;
    --text-muted: #64748b;
    --danger: #ef4444;
    --success: #10b981;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--bg-main); color: var(--text); min-height: 100vh; }
a { color: inherit; text-decoration: none; }

.auth-body { min-height: 100vh; display: flex; align-items: stretch; }
.auth-wrapper { display: flex; width: 100%; min-height: 100vh; }

/* ---- Left Panel ---- */
.auth-left {
    width: 45%;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-right: 1px solid var(--border);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 32px;
    color: var(--primary);
}

.auth-left h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text);
}

.auth-left p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.auth-features { display: flex; flex-direction: column; gap: 16px; }
.auth-feature-item { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--text); }
.check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}

/* ---- Right Panel ---- */
.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: #ffffff;
}

.auth-form-wrap { width: 100%; max-width: 420px; }
.auth-form-wrap h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text);
}
.auth-form-wrap p.auth-sub {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 28px;
}

.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #334155;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.form-control {
    width: 100%;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.15s ease;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form-control::placeholder { color: #94a3b8; }

.btn-auth {
    width: 100%;
    padding: 12px 16px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: 20px;
}
.btn-auth:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.auth-footer { text-align: center; font-size: 14px; color: var(--text-muted); }
.auth-footer a { color: var(--primary); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

.alert-auth { padding: 12px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 20px; }
.alert-auth.error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert-auth.success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }

.forgot-link { display: block; text-align: right; font-size: 13px; color: var(--primary); margin-bottom: 18px; font-weight: 500; }

/* Password Eye Toggle */
.password-wrap {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}
.password-wrap input {
    width: 100% !important;
    padding-right: 42px !important;
}
.password-toggle-btn {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 6px !important;
    color: #64748b !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    transition: color 0.15s ease, background-color 0.15s ease !important;
    line-height: 1 !important;
    user-select: none !important;
    z-index: 5 !important;
}
.password-toggle-btn:hover {
    color: var(--primary) !important;
    background: rgba(37, 99, 235, 0.08) !important;
}
.password-toggle-btn svg {
    width: 18px !important;
    height: 18px !important;
    pointer-events: none !important;
    flex-shrink: 0 !important;
}
.password-toggle-btn .eye-open {
    display: block !important;
}
.password-toggle-btn .eye-closed {
    display: none !important;
}
.password-toggle-btn.active .eye-open {
    display: none !important;
}
.password-toggle-btn.active .eye-closed {
    display: block !important;
}

@media (max-width: 768px) {
    .auth-left { display: none; }
    .auth-right { padding: 40px 24px; }
}

