/* ═══════════════════════════════════════════════════════════
   auth.css  —  PlanBizde Auth Sayfaları Ortak Stilleri
   Kullanım: Login, Register, ForgotPassword, ResetPassword
   ═══════════════════════════════════════════════════════════ */

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    background: #0f0c29;
    color: #1a1a2e;
    -webkit-font-smoothing: antialiased;
}

@media (min-width: 1024px) {
    body {
        height: 100vh;
        overflow: hidden;
    }
}

/* ─────────────────────────────────────────
   SOL PANEL
───────────────────────────────────────── */
.left-panel {
    display: none;
    position: relative;
    width: 55%;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

@media (min-width: 1024px) {
    .left-panel {
        display: flex;
        height: 100vh;
        flex-shrink: 0;
    }
}

/* Animasyonlu arka plan orb'ları */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: drift 8s ease-in-out infinite;
    pointer-events: none;
}
.orb-1 { width: 420px; height: 420px; background: #6c63ff; top: -100px; left: -80px;  animation-delay: 0s; }
.orb-2 { width: 300px; height: 300px; background: #f64f59; bottom: -60px; right: -60px; animation-delay: -3s; }
.orb-3 { width: 200px; height: 200px; background: #43e97b; top: 55%; left: 60%;       animation-delay: -5s; }

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

/* Nokta grid pattern */
.left-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* Sol panel içerik */
.left-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 480px;
    animation: fadeUp 0.6s ease both;
}

.left-logo {
    width: 205px;
    margin: 0 auto 2rem;
    filter: brightness(0) invert(1);
}

.left-headline {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.left-headline span {
    background: linear-gradient(90deg, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.left-subtitle {
    color: rgba(255,255,255,0.55);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* Feature kartları */
.feature-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    transition: background 0.3s, transform 0.3s;
}

.feature-card:hover {
    background: rgba(255,255,255,0.11);
    transform: translateX(4px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon.purple { background: rgba(167,139,250,0.2); color: #a78bfa; }
.feature-icon.blue   { background: rgba(96,165,250,0.2);  color: #60a5fa; }
.feature-icon.green  { background: rgba(52,211,153,0.2);  color: #34d399; }
.feature-icon.orange { background: rgba(251,146,60,0.2);  color: #fb923c; }
.feature-icon.pink   { background: rgba(244,114,182,0.2); color: #f472b6; }

.feature-text strong { display: block; color: #fff; font-size: 0.875rem; font-weight: 600; }
.feature-text span   { color: rgba(255,255,255,0.45); font-size: 0.78rem; }

/* Sol panel stats (kayıt sayfası için) */
.left-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    justify-content: center;
}

.stat-item { text-align: center; }
.stat-item .stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.2rem;
}
.stat-item .stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    font-weight: 500;
}
.stat-divider {
    width: 1px;
    background: rgba(255,255,255,0.12);
    align-self: stretch;
}

/* ─────────────────────────────────────────
   SAĞ PANEL (FORM ALANI)
───────────────────────────────────────── */
.right-panel {
    width: 100%;
    min-height: 100vh;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

@media (min-width: 1024px) {
    .right-panel {
        width: 45%;
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
        align-items: flex-start;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

.right-panel::-webkit-scrollbar {
    width: 6px;
}
.right-panel::-webkit-scrollbar-track {
    background: transparent;
}
.right-panel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 99px;
}
.right-panel::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.form-wrapper {
    width: 100%;
    max-width: 420px;
    animation: fadeUp 0.5s ease both;
    padding: 1rem 0;
}

/* Mobil logo */
.mobile-logo {
    display: block;
    width: 260px;
    margin: 0 auto 2rem;
}
@media (min-width: 1024px) { .mobile-logo { display: none; } }

/* Form başlık */
.form-header { margin-bottom: 2rem; }
.form-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
    margin-bottom: 0.35rem;
}
.form-header p { color: #64748b; font-size: 0.9rem; }

/* Bölüm başlığı (Register için) */
.section-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 1.5rem 0 1rem;
}
.section-label::before, .section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #f1f5f9;
}

/* ─────────────────────────────────────────
   FORM ELEMANLARI
───────────────────────────────────────── */
.field { margin-bottom: 1.1rem; }

.field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
    margin-bottom: 1.1rem;
}

/* Input wrap */
.input-wrap { position: relative; }

.input-wrap .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    width: 18px;
    height: 18px;
    pointer-events: none;
    transition: color 0.2s;
}

.input-wrap input,
.input-wrap textarea,
.input-wrap select {
    width: 100%;
    padding: 0 14px 0 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #0f172a;
    background: #f8fafc;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    outline: none;
    font-family: inherit;
}

.input-wrap input,
.input-wrap select { height: 48px; }

.input-wrap textarea {
    padding-top: 12px;
    padding-bottom: 12px;
    resize: none;
    height: auto;
}

.input-wrap input:focus,
.input-wrap textarea:focus,
.input-wrap select:focus {
    border-color: #6c63ff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(108,99,255,0.1);
}

.input-wrap:focus-within .icon { color: #6c63ff; }
.input-wrap input::placeholder,
.input-wrap textarea::placeholder { color: #cbd5e1; }

/* Select için chevron */
.input-wrap select { appearance: none; padding-right: 40px; cursor: pointer; }
.select-chevron {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #94a3b8;
    width: 16px;
    height: 16px;
}

/* Şifre toggle */
.pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}
.pw-toggle:hover { color: #6c63ff; }

/* Input dışı (no-icon) */
.input-plain {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.input-plain:focus {
    border-color: #6c63ff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(108,99,255,0.1);
}
.input-plain::placeholder { color: #cbd5e1; }

/* Field error */
.field-error {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.3rem;
    display: block;
}

/* ─────────────────────────────────────────
   BUTONLAR
───────────────────────────────────────── */
.btn-primary {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #6c63ff 0%, #5a52d5 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
    box-shadow: 0 4px 15px rgba(108,99,255,0.35);
    letter-spacing: 0.01em;
    margin-top: 0.5rem;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108,99,255,0.45);
    filter: brightness(1.05);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    width: 100%;
    height: 48px;
    background: #f1f5f9;
    color: #334155;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s;
    text-decoration: none;
    margin-top: 0.75rem;
}
.btn-secondary:hover { background: #e2e8f0; }

/* ─────────────────────────────────────────
   BANI / UYARI KUTULARI
───────────────────────────────────────── */
.validation-summary {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    color: #dc2626;
    font-size: 0.8125rem;
}
.validation-summary ul { padding-left: 1.1rem; }

.branch-banner {
    background: linear-gradient(135deg, #eff6ff, #f0f4ff);
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
}
.branch-banner p { font-size: 0.85rem; color: #1d4ed8; font-weight: 500; }

.unconfirmed-banner {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.unconfirmed-banner p { font-size: 0.8rem; color: #92400e; }

.resend-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #d97706;
    font-size: 0.8125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    transition: color 0.2s;
    font-family: inherit;
}
.resend-btn:hover { color: #b45309; }

/* ─────────────────────────────────────────
   YARDIMCI STILLER
───────────────────────────────────────── */
.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #6c63ff;
    cursor: pointer;
    border-radius: 4px;
}
.checkbox-label span { font-size: 0.8125rem; color: #64748b; }

.forgot-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6c63ff;
    text-decoration: none;
    transition: color 0.2s;
}
.forgot-link:hover { color: #5a52d5; }

.register-hint {
    text-align: center;
    margin-top: 1.75rem;
    font-size: 0.875rem;
    color: #94a3b8;
}
.register-hint a {
    color: #6c63ff;
    font-weight: 600;
    text-decoration: none;
    margin-left: 0.25rem;
}
.register-hint a:hover { text-decoration: underline; }

.divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: #f1f5f9; }
.divider span { font-size: 0.75rem; color: #cbd5e1; white-space: nowrap; }

/* Checkbox agreements */
.agreements { display: flex; flex-direction: column; gap: 0.625rem; margin-bottom: 1.25rem; }
.agree-row { display: flex; align-items: flex-start; gap: 0.625rem; }
.agree-row input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: #6c63ff;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}
.agree-row label {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
    cursor: pointer;
    font-weight: 400;
}
.agree-row label a { color: #6c63ff; font-weight: 600; text-decoration: none; }
.agree-row label a:hover { text-decoration: underline; }

/* Şifre gücü göstergesi */
.pw-strength { margin-top: 0.5rem; }
.pw-strength-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}
.pw-strength-bar span {
    flex: 1;
    height: 3px;
    border-radius: 99px;
    background: #e2e8f0;
    transition: background 0.3s;
}
.pw-strength-bar span.weak   { background: #ef4444; }
.pw-strength-bar span.medium { background: #f59e0b; }
.pw-strength-bar span.strong { background: #10b981; }
.pw-strength-text { font-size: 0.7rem; color: #94a3b8; }

/* ─────────────────────────────────────────
   ANİMASYONLAR
───────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
