/* GENEL SAYFA DÜZENİ VE ORTALAMA */
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Arka plan resmi yerine hareketli, modern ve romantik renk geçişleri */
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    font-family: 'Poppins', sans-serif; /* Modern font */
    -webkit-font-smoothing: antialiased; /* Yazıları daha net ve pürüzsüz yapar */
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}

/* LOGIN KUTUSU TASARIMI (GLASSMORPHISM) */
#loginCard {
    position: relative;
    width: 100%;
    max-width: 400px; /* İdeal genişlik */
    padding: 45px 35px;
    background: #ffffff; /* Tamamen opak beyaz arka plan */
    backdrop-filter: none;
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); /* Daha yumuşak ve modern gölge */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #333; /* Koyu metin rengi */
    z-index: 10;
    /* transform-style: preserve-3d; <-- BU SATIR YAZILARI BULANIKLAŞTIRIYORDU, SİLDİK */
    backface-visibility: hidden; /* Render kalitesini artırır */
}

/* BAŞLIKLAR */
#loginCard h2 {
    font-size: 2.4rem; /* Daha büyük ve iddialı */
    font-weight: 700;
    color: #2d3436; /* Koyu gri başlık */
    letter-spacing: 1px; /* Modern görünüm için harf aralığı */
    margin-bottom: 8px;
    text-shadow: none; /* Beyaz zeminde gölgeye gerek yok */
    text-transform: uppercase; /* Başlıkları büyük harf yap */
}

#loginCard p {
    color: #636e72; /* Orta gri açıklama metni */
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: none;
}

/* INPUT ALANLARI */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 18px 25px; /* Daha ferah iç boşluk */
    margin-bottom: 18px;
    background: #ffffff; /* Şeffaflık kalktı, net beyaz zemin */
    backdrop-filter: none;
    border: 2px solid #e0e0e0; /* Belirgin gri çerçeve */
    border-radius: 50px; /* Tam kapsül şekli */
    color: #333; /* Okunabilirlik için koyu yazı rengi */
    font-size: 1.05rem;
    font-weight: 500;
    outline: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

input::placeholder { 
    color: #999; 
    font-weight: 400;
}

input:focus {
    background: #ffffff;
    border-color: #6c5ce7; /* Odaklanınca tema rengi (mor) */
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.3); /* Mor parlama efekti */
    transform: translateY(-3px); /* Hafifçe yukarı kalkma */
}

    button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    button:not(:disabled):hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(108,92,231,0.18);
    }

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 25px;
    background: #ffffff; /* Tasarımı bozmaması için düz beyaz zemin */
    z-index: 10000; /* Her şeyin üstünde olduğundan emin olalım */
}

.loader-image {
    width: 120px;
    height: 120px;
    border-radius: 50%; /* Tam yuvarlak */
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.3);
    animation: heartbeat 1.5s infinite; /* Kalp atışı efekti */
}

/* İlerleme Çubuğu Kapsayıcısı */
/* HTML'deki inline stili ezip düzgün görünmesini sağlayan seçici */
#loader > div[style*="width"] {
    width: 80% !important;
    max-width: 350px !important;
    height: 10px !important;
    background: #e0e0e0 !important;
    border-radius: 20px !important;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden; /* Taşan kısımları gizle */
}

/* İlerleme Çubuğu Dolgusu */
#loaderProgress {
    background: linear-gradient(90deg, #a29bfe, #6c5ce7, #fd79a8) !important;
    background-size: 200% 200% !important;
    animation: gradientMove 2s ease infinite;
    border-radius: 20px !important;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.05); }
    30% { transform: scale(1); }
    45% { transform: scale(1.05); }
    60% { transform: scale(1); }
    100% { transform: scale(1); }
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Arka planın yavaşça renk değiştirmesini sağlayan animasyon */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}