/* ═══════════════════════════════════════════════════════════
   AUTH PAGES — Premium Light Theme
   Shared CSS for Login / Register / 2FA / Forgot Password
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --auth-primary: #6366f1;
    --auth-primary-light: #818cf8;
    --auth-primary-dark: #4f46e5;
    --auth-accent: #06b6d4;
    --auth-success: #10b981;
    --auth-danger: #ef4444;
    --auth-warning: #f59e0b;
    --auth-bg: #f8fafc;
    --auth-surface: #ffffff;
    --auth-surface-2: #f1f5f9;
    --auth-text: #0f172a;
    --auth-text-muted: #64748b;
    --auth-border: #e2e8f0;
    --auth-glass: rgba(255, 255, 255, 0.85);
    --auth-glow: rgba(99, 102, 241, 0.15);
    --auth-radius: 16px;
    --auth-radius-sm: 12px;
    --auth-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body.auth-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--auth-bg);
    color: var(--auth-text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ─── ANIMATED BACKGROUND ─── */
.auth-bg-animation {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-bg-animation .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2; /* Doygunluğu azalttık ışık için */
    animation: orbFloat 15s ease-in-out infinite;
}
.auth-bg-animation .orb-1 { width: 600px; height: 600px; background: #6366f1; top: -15%; left: -10%; animation-delay: 0s; }
.auth-bg-animation .orb-2 { width: 500px; height: 500px; background: #22d3ee; bottom: -10%; right: -8%; animation-delay: -5s; }
.auth-bg-animation .orb-3 { width: 400px; height: 400px; background: #818cf8; top: 50%; left: 40%; animation-delay: -10s; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.05); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* ─── LAYOUT ─── */
.auth-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

/* ─── LEFT SIDEBAR ─── */
.auth-sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
    overflow: hidden;
}

.auth-sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(15,23,42,0.4) 100%);
    z-index: 1;
}

.auth-sidebar-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 12s ease;
}

.auth-sidebar:hover .auth-sidebar-bg {
    transform: scale(1.03);
}

.auth-sidebar-content {
    position: relative;
    z-index: 2;
}

.auth-sidebar-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.auth-sidebar-content p {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    max-width: 400px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Stat badges in sidebar */
.auth-sidebar-stats {
    display: flex;
    gap: 1.25rem;
    margin-top: 2rem;
}
.auth-stat-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}
.auth-stat-badge i { color: #fff; }

/* ─── RIGHT FORM AREA ─── */
.auth-form-area {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    background: #fff;
    overflow-y: auto;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--auth-surface);
    padding: 1rem;
}

/* ─── LOGO ─── */
.auth-logo {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-logo img {
    height: 40px;
    object-fit: contain;
}

/* ─── HEADINGS ─── */
.auth-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--auth-text);
    margin-bottom: 0.25rem;
    letter-spacing: -0.5px;
}
.auth-subtitle {
    font-size: 0.9rem;
    color: var(--auth-text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

/* ─── FORM ELEMENTS ─── */
.auth-form-group {
    margin-bottom: 0.85rem;
}

.auth-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--auth-text);
    margin-bottom: 0.6rem;
    letter-spacing: 0.2px;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrap i.auth-input-icon {
    position: absolute;
    left: 1.1rem;
    color: var(--auth-text-muted);
    font-size: 1rem;
    z-index: 2;
    transition: var(--auth-transition);
}

.auth-input {
    width: 100%;
    height: 48px;
    padding: 0 1rem 0 3rem;
    background: var(--auth-surface-2);
    border: 2px solid transparent;
    border-radius: var(--auth-radius-sm);
    color: var(--auth-text);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--auth-transition);
    outline: none;
}

.auth-input::placeholder { color: var(--auth-text-muted); opacity: 0.6; }

.auth-input:focus {
    border-color: var(--auth-primary-light);
    background: #fff;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.08);
}
.auth-input:focus + i.auth-input-icon,
.auth-input:focus ~ i.auth-input-icon {
    color: var(--auth-primary);
}

/* Input without icon */
.auth-input.no-icon { padding-left: 1.1rem; }

textarea.auth-input { height: auto; min-height: 80px; padding-top: 0.85rem; resize: vertical; }

select.auth-input { appearance: none; cursor: pointer; }

/* ─── BUTTONS ─── */
.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    height: 48px;
    padding: 0 1.5rem;
    border: none;
    border-radius: var(--auth-radius-sm);
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--auth-transition);
    text-decoration: none;
}

.auth-btn-primary {
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-dark));
    color: #fff;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.25);
}
.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.35);
}
.auth-btn-primary:active { transform: translateY(0); }

.auth-btn-google {
    background: #fff;
    border: 2px solid var(--auth-border);
    color: var(--auth-text);
}
.auth-btn-google:hover {
    background: var(--auth-surface-2);
    text-decoration: none;
    color: var(--auth-text);
    transform: translateY(-1px);
    border-color: var(--auth-text);
}

/* ─── DIVIDER ─── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.75rem 0;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}
.auth-divider span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--auth-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ─── CHECKBOX ─── */
.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}
.auth-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--auth-primary);
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid var(--auth-border);
    border-radius: 4px;
}
.auth-check label {
    font-size: 0.9rem;
    color: var(--auth-text-muted);
    cursor: pointer;
    line-height: 1.5;
}
.auth-check label a {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 700;
}
.auth-check label a:hover { text-decoration: underline; }

/* ─── HELPER ROW ─── */
.auth-helper-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}
.auth-helper-row a {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--auth-primary);
    text-decoration: none;
}
.auth-helper-row a:hover { text-decoration: underline; }

/* ─── ALERTS ─── */
.auth-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--auth-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.auth-alert-danger { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.auth-alert-success { background: #f0fdf4; border: 1px solid #dcfce7; color: #166534; }
.auth-alert-warning { background: #fffbeb; border: 1px solid #fef3c7; color: #92400e; }

/* ─── LINKS & FOOTER ─── */
.auth-footer {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.85rem;
    color: var(--auth-text-muted);
}
.auth-footer a { color: var(--auth-primary); font-weight: 700; text-decoration: none; }

.auth-bottom-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--auth-text-muted);
}
.auth-bottom-link a { color: var(--auth-primary); font-weight: 700; text-decoration: none; }

/* ─── OTP INPUTS ─── */
.auth-otp-wrap { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; }
.auth-otp-input {
    width: 65px;
    height: 70px;
    border-radius: var(--auth-radius-sm);
    border: 2px solid var(--auth-border);
    background: var(--auth-surface-2);
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--auth-text);
    outline: none;
    transition: var(--auth-transition);
}
.auth-otp-input:focus {
    border-color: var(--auth-primary);
    background: #fff;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.12);
}

/* ─── ICON CIRCLE ─── */
.auth-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: #f1f5f9;
    color: var(--auth-primary);
    font-size: 2rem;
}

/* ─── FORM ROW ─── */
.auth-row { display: flex; gap: 1rem; }
.auth-row > * { flex: 1; min-width: 0; }

/* ─── RESPONSIVE ─── */
@media (max-width: 991px) {
    .auth-sidebar { display: none !important; }
}

@media (max-width: 576px) {
    .auth-form-area { padding: 1.5rem; }
    .auth-title { font-size: 1.5rem; }
}

/* ─── ANIMATIONS ─── */
@keyframes authFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.auth-card { animation: authFadeIn 0.6s ease-out; }

/* ─── MODAL (Light) ─── */
.auth-modal .modal-content {
    background: #fff;
    border: none;
    border-radius: var(--auth-radius);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.2);
}
.auth-modal .modal-header { border-bottom: 1px solid var(--auth-border); padding: 1.5rem; }
.auth-modal .modal-body { padding: 2rem; font-size: 0.95rem; line-height: 1.7; color: var(--auth-text-muted); }

/* ─── Country Select (Register) ─── */
.auth-phone-group {
    display: flex;
    align-items: center;
    background: var(--auth-surface-2);
    border: 2px solid transparent;
    border-radius: var(--auth-radius-sm);
    overflow: hidden;
    transition: var(--auth-transition);
    width: 100%;
}
.auth-phone-group:focus-within {
    border-color: var(--auth-primary-light);
    background: #fff;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.08);
}
.auth-phone-group select.auth-input, 
.auth-phone-group input.auth-input {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    height: 48px;
    margin: 0;
}
.auth-phone-group select.auth-input {
    width: 90px;
    padding: 0 0.5rem 0 1rem;
    border-right: 1px solid var(--auth-border) !important;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 600;
}
.auth-phone-group input.auth-input {
    flex: 1;
    padding-left: 1rem;
}

/* ─── Captcha Box ─── */
.auth-captcha-box {
    background: #f8fafc;
    border: 2px dashed var(--auth-border);
    border-radius: var(--auth-radius-sm);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}
.auth-captcha-question { font-size: 1.75rem; font-weight: 800; color: var(--auth-primary); letter-spacing: 2px; }
