/* =========================================
   AUTH SAYFALARI (SPLIT SCREEN - COMPACT)
   ========================================= */

/* Split Screen Layout - Scroll Yok, Tam Ekran */
.auth-wrapper {
    display: flex;
    height: 100vh; /* Ekran boyutuna sabitleme */
    width: 100%;
    background-color: var(--bg-card);
    overflow: hidden; /* Scroll kesinlikle kapalı */
}

/* --- SOL TARAF (GÖRSEL VE MESAJ) --- */
.auth-left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    padding: 40px;
    text-align: center;
    position: relative;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../../images/register.jpg') no-repeat center center/cover;
    opacity: 0.2;
    z-index: 0;
}

.auth-left-content {
    position: relative;
    z-index: 1;
    max-width: 400px;
}

.auth-left h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2vh;
    font-weight: 700;
    line-height: 1.2;
}

.auth-left p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    opacity: 0.9;
}

/* --- SAĞ TARAF (FORM) --- */
.auth-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2vh 2vw;
    background-color: var(--bg-card);
    height: 100%;
    overflow: hidden;
}

.auth-form-container {
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 100vh; /* Formu ekran içine sığdır */
}

.auth-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vh, 2rem);
    color: var(--text-main);
    margin-bottom: 1vh;
    font-weight: 700;
}

.auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 2vh;
    font-size: clamp(0.85rem, 2vh, 1rem);
}

/* Form Satırı (Ad-Soyad yan yana) */
.form-row-split {
    display: flex;
    gap: 15px;
}
.form-row-split .form-group {
    flex: 1;
}

/* Form Elemanları */
.form-group {
    position: relative;
    margin-bottom: 1.5vh;
}

.form-control {
    width: 100%;
    padding: 1.2vh 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: clamp(0.9rem, 2vh, 1rem);
    background: transparent;
    transition: var(--transition);
    outline: none;
    height: 50px; /* Yükseklik sabitleme */
    color: var(--text-main);
    font-family: var(--font-body);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

/* Floating Labels (Yüzen Etiketler) */
.form-label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--bg-card);
    padding: 0 5px;
    color: var(--text-muted);
    font-size: clamp(0.85rem, 2vh, 1rem);
    transition: var(--transition);
    pointer-events: none;
}

.form-control:focus + .form-label,
.form-control:not(:placeholder-shown) + .form-label {
    top: 0;
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Validation Styles */
.is-invalid {
    border-color: var(--primary-color) !important; /* Kırmızı yerine tema rengi veya danger */
}

.invalid-feedback {
    display: block;
    color: var(--primary-color);
    font-size: 0.75rem;
    margin-top: 0.5vh;
    margin-left: 5px;
}

.valid-feedback-dynamic {
    color: #28a745;
    font-size: 0.75rem;
    margin-top: 0.5vh;
    display: none;
}

/* Ana Sayfaya Dön Butonu */
.btn-back-home {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1.2vh 0;
    margin-bottom: 2vh;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    background-color: var(--bg-body);
}

.btn-back-home:hover {
    background-color: var(--bg-card);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Cinsiyet Butonları */
.gender-group {
    margin-bottom: 1.5vh;
}

.static-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.gender-options {
    display: flex;
    gap: 10px;
}

.gender-btn {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.gender-btn input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.gender-btn span {
    display: block;
    text-align: center;
    padding: 1vh 5px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: clamp(0.85rem, 2vh, 0.95rem);
    color: var(--text-muted);
    transition: var(--transition);
    background: var(--bg-card);
}

.gender-btn input:checked + span {
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-rgb), 0.05);
    color: var(--primary-color);
    font-weight: 700;
}

.gender-btn:hover span {
    border-color: var(--text-muted);
}

/* Ana Aksiyon Butonu */
.btn-primary {
    width: 100%;
    padding: 1.2vh;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: clamp(1rem, 2vh, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1vh;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Ayırıcı */
.auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2vh 0;
    color: var(--text-muted);
}

.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-separator span {
    padding: 0 10px;
    font-size: 0.85rem;
}

/* Sosyal Medya Butonları */
.social-buttons {
    display: flex;
    gap: 10px;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1vh;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: clamp(0.8rem, 1.8vh, 0.95rem);
}

.btn-social:hover {
    background-color: var(--bg-body);
    border-color: var(--text-muted);
}

.btn-social img {
    width: 18px;
    margin-right: 8px;
}

/* Login Linki */
.login-link-box {
    text-align: center;
    margin-top: 2vh;
    font-size: clamp(0.8rem, 1.8vh, 0.9rem);
    color: var(--text-muted);
}
.login-link-box a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}
.login-link-box a:hover { text-decoration: underline; }

/* Honeypot (Gizli Spam Alanı) */
.honeypot-box {
    display: none;
    visibility: hidden;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* Şifremi Unuttum Linki */
.forgot-password-link {
    text-align: right;
    margin-bottom: 2vh;
}
.forgot-password-link a {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
}
.forgot-password-link a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .auth-left {
        display: none;
    }
}

/* Ekstra Küçük Yükseklikler İçin (Yatay Telefon vb.) */
@media (max-height: 600px) {
    .auth-form-container {
        transform: scale(0.95);
    }
    .auth-title {
        font-size: 1.5rem;
        margin-bottom: 0.5vh;
    }
    .auth-subtitle, .auth-separator, .social-buttons {
        display: none; /* Çok darsa ikincil öğeleri gizle */
    }
    .form-control { height: 40px; }
    .btn-back-home { margin-bottom: 5px; padding: 5px 0; }
}