/* --------------------------------------------------------------------------------
 * Dosya: auth.css
 * Açıklama: login.php ve password-reset.php için modern, sade, kurumsal ve %100 responsive stil dosyası.
 * Yazar: Grok (Oluşturuldu)
 * Versiyon: 1.9
 * Tarih: 26 Nisan 2025
 * Güncellemeler:
 * - password-reset.php için tasarım login.php ile uyumlu hale getirildi.
 * - Floating label efekti password-reset.php için de eklendi.
 * - E-posta doğrulama ikonu, geri sayım sayacı, animasyonlu buton stilleri eklendi.
 * - Geri dön linkine ikon eklendi.
 * - stock-management.css ile tasarım uyumu sağlandı.
 * - %100 responsive, erişilebilirlik özellikleri korundu.
 * -------------------------------------------------------------------------------- */

/* Genel Stiller */
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

.giris-kapsayici {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #E6F0FA 0%, #F5F8FF 100%);
    padding: 25px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .giris-kapsayici {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .giris-kapsayici {
        padding: 10px;
    }
}

/* Logo Kapsayıcı */
.logo-kapsayici {
    margin-bottom: 20px;
}

.logo {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.06));
}

@media (max-width: 768px) {
    .logo {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 100px;
    }
}

/* Giriş Kutusu */
.giris-kutusu {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-sizing: border-box;
}

.giris-kutusu:hover {
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .giris-kutusu {
        padding: 20px;
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .giris-kutusu {
        padding: 15px;
        max-width: 100%;
    }
}

/* Başlık */
.giris-kutusu h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .giris-kutusu h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .giris-kutusu h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }
}

/* Form Stilleri */
#giris-formu, #password-reset-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}

/* Yüzey Form Grubu (Input Alanları) */
.yuzen-form-grubu {
    position: relative;
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

.yuzen-form-grubu label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-weight: 500;
    color: #6B7280;
    font-size: 16px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.yuzen-form-grubu input {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    font-size: 16px;
    background-color: #FFFFFF;
    color: #333333;
    box-sizing: border-box;
}

.yuzen-form-grubu input:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.yuzen-form-grubu input:focus + label,
.yuzen-form-grubu input:not(:placeholder-shown) + label {
    top: -8px;
    transform: translateY(0);
    font-size: 12px;
    color: #007BFF;
    background: #FFFFFF;
    padding: 0 6px;
    margin-left: -6px;
}

/* Bilgi İkonu (Tooltip) */
.yuzen-form-grubu .bilgi-ikonu {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #E5E7EB;
    color: #6B7280;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: help;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.yuzen-form-grubu .bilgi-ikonu:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #333333;
    color: #FFFFFF;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* E-posta Doğrulama İkonu */
.yuzen-form-grubu .email-dogrulama-ikonu {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    display: none;
    z-index: 3;
}

.yuzen-form-grubu .email-dogrulama-ikonu.valid {
    color: #10B981;
    display: block;
}

.yuzen-form-grubu .email-dogrulama-ikonu.invalid {
    color: #EF4444;
    display: block;
}

/* Şifre Görünürlük İkonu */
.yuzen-form-grubu .sifre-gorunurluk-ikonu {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6B7280;
    font-size: 16px;
    transition: color 0.3s ease;
    z-index: 3;
}

.yuzen-form-grubu .sifre-gorunurluk-ikonu:hover {
    color: #007BFF;
}

@media (max-width: 768px) {
    .yuzen-form-grubu {
        margin-bottom: 12px;
    }
    .yuzen-form-grubu label {
        font-size: 15px;
    }
    .yuzen-form-grubu input {
        padding: 10px 35px 10px 10px;
        font-size: 15px;
    }
    .yuzen-form-grubu input:focus + label,
    .yuzen-form-grubu input:not(:placeholder-shown) + label {
        top: -6px;
        font-size: 10px;
    }
    .yuzen-form-grubu .bilgi-ikonu {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
    .yuzen-form-grubu .email-dogrulama-ikonu,
    .yuzen-form-grubu .sifre-gorunurluk-ikonu {
        right: 35px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .yuzen-form-grubu {
        margin-bottom: 10px;
    }
    .yuzen-form-grubu label {
        font-size: 13px;
    }
    .yuzen-form-grubu input {
        padding: 8px 30px 8px 8px;
        font-size: 14px;
    }
    .yuzen-form-grubu input:focus + label,
    .yuzen-form-grubu input:not(:placeholder-shown) + label {
        top: -5px;
        font-size: 9px;
    }
    .yuzen-form-grubu .bilgi-ikonu {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
    .yuzen-form-grubu .email-dogrulama-ikonu,
    .yuzen-form-grubu .sifre-gorunurluk-ikonu {
        right: 30px;
        font-size: 14px;
    }
}

/* Beni Hatırla Checkbox */
.beni-hatirla {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333333;
}

.beni-hatirla input {
    cursor: pointer;
    accent-color: #007BFF;
}

@media (max-width: 768px) {
    .beni-hatirla {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .beni-hatirla {
        font-size: 12px;
    }
}

/* Buton Stilleri */
.buton {
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.buton.disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.buton-birincil {
    background-color: #007BFF;
    color: #FFFFFF;
}

.buton-birincil:hover:not(.disabled) {
    background-color: #0056B3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.buton .buton-yukleme {
    margin-left: 10px;
}

@media (max-width: 768px) {
    .buton {
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .buton {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Giriş Sayfasına Dön Linki */
.giris-sayfasina-don {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    font-size: 14px;
    color: #007BFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.giris-sayfasina-don:hover {
    color: #0056B3;
}

.giris-sayfasina-don i {
    font-size: 14px;
}

@media (max-width: 768px) {
    .giris-sayfasina-don {
        font-size: 13px;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .giris-sayfasina-don {
        font-size: 12px;
    }
}

/* Şifremi Unuttum Linki */
.sifremi-unuttum {
    display: inline-block;
    margin-top: 15px;
    font-size: 14px;
    color: #007BFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sifremi-unuttum:hover {
    color: #0056B3;
}

@media (max-width: 768px) {
    .sifremi-unuttum {
        font-size: 13px;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .sifremi-unuttum {
        font-size: 12px;
    }
}

/* SweetAlert2 Modal Stilleri */
.swal2-popup {
    font-family: 'Poppins', sans-serif;
    border-radius: 10px;
    background-color: #FFFFFF;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    padding: 20px;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.swal2-title {
    font-size: 20px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 15px;
}

.swal2-html-container {
    font-size: 14px;
    color: #333333;
}

.swal2-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 15px;
}

.swal2-confirm,
.swal2-cancel {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.swal2-confirm {
    background-color: #007BFF;
    color: #FFFFFF;
}

.swal2-confirm:hover {
    background-color: #0056B3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.swal2-cancel {
    background-color: #EF4444;
    color: #FFFFFF;
}

.swal2-cancel:hover {
    background-color: #DC2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .swal2-popup {
        width: 90%;
        padding: 15px;
    }
    .swal2-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .swal2-html-container {
        font-size: 13px;
    }
    .swal2-confirm,
    .swal2-cancel {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .swal2-popup {
        padding: 10px;
    }
    .swal2-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    .swal2-html-container {
        font-size: 12px;
    }
    .swal2-confirm,
    .swal2-cancel {
        padding: 5px 10px;
        font-size: 12px;
    }
}