/* onchat/assets/css/forms.css */

/* 1. ANA FORM KUTUSU */
.form-box {
    max-width: 450px;
    margin: 40px auto;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #bdced3;
}

.form-box h2, .form-box h3 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

/* 2. GENEL INPUT, SELECT VE TEXTAREA STİLLERİ */
/* Cinsiyet (select) alanı burada inputlarla eşitlendi */
.form-box label {
    display: block;
    margin: 15px 0 5px;
    font-weight: 600;
    font-size: 14px;
    color: #444;
}

.form-box input, 
.form-box select, 
.form-box textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
    background-color: #fff;
    color: #333;
    transition: 0.2s ease-in-out;
}

/* Focus (Tıklanınca) Durumu */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #007bff !important;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.15);
    background-color: #fcfcfc;
}

/* 3. TARİH ALANI (DATE INPUT) ÖZEL DÜZENLEME */
input[type="date"] {
    min-height: 44px;
    color: #333 !important;
}

/* Tarih yazarken içindeki metnin görünürlüğü */
input[type="date"]::-webkit-datetime-edit,
input[type="date"]::-webkit-datetime-edit-text,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
    color: #333 !important;
}

/* Sağdaki Takvim İkonu */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: grayscale(1) contrast(0.5);
    opacity: 0.6;
}

/* 4. ŞİFRE GÖZÜ (TOGGLE PASSWORD) */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 45px; /* Göz simgesi için sağdan boşluk */
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-size: 16px;
    z-index: 10;
    transition: 0.2s;
}

.toggle-password:hover {
    color: #007bff;
}

/* 5. BUTONLAR VE AKSİYONLAR */
.btn-onchat {
    width: auto !important;
    height: 45px;
    padding: 0 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #007bff;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.3s;
}

.btn-onchat:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Form Altındaki Buton Dizilimi */
.form-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
}

/* Login Sayfası İçin Dar ve Ortalı Yapı */
.form-compact {
    max-width: 380px !important;
    margin: 60px auto;
}

/* onchat/assets/css/forms.css - Ek/Güncelleme */

.form-actions-stacked {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
    width: 100%;
    box-sizing: border-box; /* Taşmayı önler */
}

.form-actions-stacked .btn-onchat {
    width: 100% !important; /* Kutuyu tam kaplar */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* İç boşluğu sıfırlayıp height ile yönetelim */
    height: 45px;
    box-sizing: border-box;
}

/* Flex içindeki inputların marginini sıfırlayan yardımcı */
.flex-input {
    margin-bottom: 0 !important;
    height: 40px !important; /* Resim yüksekliğiyle eşitledik */
}
/* 6. GÖRSEL ÖNİZLEME (PREVIEW) KUTUSU */
.upload-preview-wrapper {
    margin-top: 15px;
    display: none;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border: 2px dashed #bdced3;
    width: fit-content;
    text-align: center;
}

.upload-preview-wrapper img {
    max-height: 120px;
    max-width: 200px;
    border-radius: 4px;
    display: block;
    margin: 5px auto;
}

.upload-preview-wrapper span {
    font-size: 11px;
    color: #007bff;
    font-weight: bold;
    display: block;
}

/* 7. MESAJLAR */
.error-msg {
    background: #fff0f0;
    color: #d93025;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    border: 1px solid #f8d7da;
    text-align: center;
}

.input-center { 
    text-align: center; }
    
    /* --- CAPTCHA HİZALAMA SİHRİ --- */
.captcha-container {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.captcha-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.captcha-inner img {
    height: 40px !important;
    border-radius: 4px;
    border: 1px solid #ccc;
    cursor: pointer;
}

.captcha-inner .flex-input {
    width: 80px !important;
    height: 40px !important;
    margin-bottom: 0 !important; /* Aşağı kaymayı önleyen kritik satır */
    padding: 0 !important;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    border: 1px solid #ccc;
}

.captcha-refresh-btn {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    display: flex;
    align-items: center;
}

