/**
 * Edumetri - Auth Sayfaları Ortak Stili (login/register/forgot/reset)
 *
 * Önceden bu blok 4 dosyada (auth/*.php) neredeyse birebir aynı şekilde
 * inline <style> olarak tekrarlanıyordu. Koyu mod desteği eklerken tek
 * yerden yönetilebilmesi için buraya taşındı.
 *
 * public/assets/css/landing-premium.css'in tanımladığı --primary/--slate-*
 * token'larını kullanır (bu dosyadan SONRA linklenmeli). O dosyadaki
 * --slate-500/--slate-600 tanımsızdı, eksiklik burada tamamlandı.
 */

:root {
    --slate-500: #64748b;
    --slate-600: #475569;
    --auth-surface: #ffffff;
    --auth-page-bg: var(--slate-50);
    --auth-border: var(--slate-100);
    --auth-input-border: var(--slate-200);
    --auth-text: var(--slate-900);
    --auth-text-muted: var(--slate-700);
}

:root[data-theme="dark"] {
    --slate-50: #0E0F14;
    --slate-100: #1F2130;
    --slate-200: #262835;
    --slate-500: #7B7F94;
    --slate-600: #9497AC;
    --slate-700: #B7B9C6;
    --slate-800: #D6D8E0;
    --slate-900: #F1F2F6;
    --auth-surface: #16171F;
    --auth-page-bg: #0E0F14;
    --auth-border: #262835;
    --auth-input-border: #33364A;
    --auth-text: #F1F2F6;
    --auth-text-muted: #B7B9C6;
}

body {
    background: var(--auth-page-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.05) 0%, rgba(255, 255, 255, 0) 50%),
                radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.05) 0%, rgba(255, 255, 255, 0) 50%);
    z-index: -1;
}

/* Koyu Mod Toggle (auth sayfaları - sidebar yok, sabit köşe butonu) */
.auth-theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    color: var(--auth-text-muted);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.2s;
}

.auth-theme-toggle:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

.auth-card {
    background: var(--auth-surface);
    border-radius: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--auth-border);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.6s ease-out;
}

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

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-header {
    padding: 3rem 3rem 1.5rem;
    text-align: center;
}

.auth-brand {
    text-decoration: none;
    display: inline-block;
    line-height: 0;
    margin-bottom: 2rem;
}

.auth-brand img {
    height: 58px;
    width: auto;
    display: block;
    margin: 0 auto;
}

/* forgot/reset password sayfaları görsel logo yerine ikon+metin kullanıyor */
.auth-brand--icon {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    line-height: normal;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: var(--auth-text);
}

.auth-brand--icon i { color: var(--primary); }

@media (max-width: 575px) {
    .auth-brand img { height: 48px; }
}

.auth-title {
    font-weight: 800;
    color: var(--auth-text);
    margin-bottom: 0.5rem;
}

.auth-body { padding: 0 3rem 3.5rem; }

.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--auth-text-muted);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--auth-input-border);
    background: var(--auth-surface);
    color: var(--auth-text);
    transition: all 0.3s;
    font-family: inherit;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    background: var(--auth-surface);
    color: var(--auth-text);
}

.btn-auth {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.75rem;
    padding: 1rem;
    font-weight: 700;
    width: 100%;
    transition: all 0.3s;
    margin-top: 1rem;
}

.btn-auth:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--auth-text-muted);
    font-weight: 500;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.bg-soft-primary { background: rgba(79, 70, 229, 0.05); }
.text-primary { color: var(--primary) !important; }
.forgot-link { font-size: 0.825rem; }

.section-divider {
    margin: 2rem 0 1.5rem;
    position: relative;
    text-align: center;
}

.section-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--auth-input-border);
    z-index: 1;
}

.section-divider span {
    background: var(--auth-surface);
    padding: 0 1rem;
    color: var(--slate-500);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 2;
}

.password-strength {
    height: 4px;
    border-radius: 2px;
    background: var(--auth-input-border);
    margin-top: 0.5rem;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s;
}
