/* * Modern Split-Screen Auth Styles (No-Scroll Version)
 * Dosya: /public/assets/css/pages/auth.css
 */

/* Genel Layout - TAM EKRAN ZORLAMA */
.auth-main-container {
    position: fixed; /* Header ve main layout padding'inden kurtarır */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Mobil tarayıcı barı sorunu için */
    z-index: 1000; /* Diğer elementlerin üstüne çıkar */
    background: var(--bg-surface);
    display: flex;
    overflow: hidden; /* Scroll KESİN engellendi */
    overscroll-behavior: none; /* Mobilde sayfayı çekmeyi engeller */
}

.split-screen {
    display: flex;
    width: 100%;
    height: 100%;
}

/* --- SOL TARAFI (Hoşgeldin Mesajı) --- */
.auth-left {
    flex: 1.1;
    background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4vw; /* Sabit pixel yerine vw */
    position: relative;
    overflow: hidden;
}

/* Dekoratif Efektler */
.auth-left::before, .auth-left::after {
    content: '';
    position: absolute;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    border-radius: 50%;
}
.auth-left::before { top: -10%; left: -10%; width: 50%; height: 50%; }
.auth-left::after { bottom: -10%; right: -10%; width: 60%; height: 60%; }

.auth-brand {
    position: absolute;
    top: 3vh; /* Ekran yüksekliğine göre konum */
    left: 3vw;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    z-index: 10;
}

.auth-message {
    z-index: 5;
    max-width: 600px;
}

.auth-message h1 {
    font-size: clamp(2rem, 3.5vw, 3.5rem); /* Responsive font */
    line-height: 1.1;
    margin-bottom: 2vh;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.auth-message p {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    opacity: 0.9;
    line-height: 1.5;
}

/* --- SAĞ TARAF (Form) --- */
.auth-right {
    flex: 1;
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2vh 2vw; /* Dikey padding ekran boyuna göre */
    position: relative;
    height: 100%;
    overflow: hidden; /* Sağ taraf da scroll olmasın */
}

/* Form Container */
.auth-form-container {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Eğer ekran çok çok küçükse (iphone SE yatay vb) flex ile sıkıştır */
    max-height: 100%; 
}

/* Siteye Dön Butonu */
.btn-back-home {
    position: absolute; /* Fixed yerine absolute (sağ panel içinde kalsın) */
    top: 2vh;
    right: 2vw;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-back-home:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.auth-header {
    text-align: center;
    margin-bottom: 2vh; /* Dinamik boşluk */
}

.auth-title {
    font-size: clamp(1.4rem, 2.5vh, 1.8rem); /* Yüksekliğe göre font */
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5vh;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: clamp(0.8rem, 1.5vh, 0.95rem);
}

/* Form Alanları (Kompakt ve Responsive) */
.form-group {
    margin-bottom: 1.2vh; /* Sabit px yerine vh */
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.form-control, .btn-social {
    width: 100%;
    /* Yükseklik ekran boyuna göre ölçeklenir, ama çok küçülmez */
    padding: clamp(0.6rem, 1.2vh, 0.9rem) 1rem; 
    font-size: clamp(0.85rem, 1.5vh, 0.95rem);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: var(--bg-body);
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px var(--primary-soft);
    outline: none;
}

/* Password Group */
.password-group { position: relative; }
.password-group input { padding-right: 40px; }
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    display: flex;
}

/* Social Login */
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 2vh;
}

.btn-social {
    background: #fff;
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-social:hover { background: #f8fafc; border-color: var(--border-focus); }

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin: 1.5vh 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.separator::before, .separator::after {
    content: ''; flex: 1; border-bottom: 1px solid var(--border-subtle);
}
.separator::before { margin-right: 1rem; }
.separator::after { margin-left: 1rem; }

/* Primary Button */
.btn-primary.w-100 {
    width: 100%;
    padding: clamp(0.7rem, 1.5vh, 1rem); /* Buton yüksekliği de responsive */
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1vh;
}

/* Footer Links */
.auth-footer {
    text-align: center;
    margin-top: 2vh;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

/* --- MOBILE & TABLET UYUMLULUK --- */
@media (max-width: 900px) {
    .auth-main-container {
        /* Mobilde de fixed kalabilir ama scroll gerekirse diye auto */
        /* Ama "no-scroll" kuralı için fixed tutuyoruz, içerik sığmazsa clamp küçülecek */
        display: block; 
        overflow-y: auto; /* Çok küçük ekranlarda içerik taşarsa erişilebilir olsun */
    }
    
    .split-screen { flex-direction: column; height: auto; min-height: 100%; }
    
    .auth-left {
        display: none; /* Küçük ekranda solu gizle */
    }
    
    .auth-right {
        padding: 2rem 1.5rem;
        height: auto;
        min-height: 100vh; /* Mobilde de tam boy */
    }
}

/* Ekstra küçük dikey ekranlar için (Örn: Laptop 1366x768 ve browser toolbarları açıkken) */
@media (max-height: 700px) and (min-width: 901px) {
    .auth-header { margin-bottom: 1vh; }
    .social-login { margin-bottom: 1vh; }
    .separator { margin: 1vh 0; }
    .form-group { margin-bottom: 0.8vh; }
    .auth-footer { margin-top: 1vh; }
    .btn-back-home { top: 1vh; }
}