/* Genel Ayarlar */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Daha modern bir font */
    /* Kırmızıdan siyaha, modern bir arka plan */
    background: linear-gradient(135deg, #000000 0%, #4c0000 50%, #770000 100%); /* Siyah ve Bordo tonları */
    color: #f0f0f0; /* Açık metin rengi */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden; /* Taşmayı engelle */
    position: relative; /* Arka plan efektleri için */
}

/* Arka plan animasyonu - isteğe bağlı, daha modern bir his için */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(255,200,0,0.05) 0%, transparent 50%), /* Hafif altın pırıltısı */
        radial-gradient(circle at 90% 80%, rgba(130,50,0,0.05) 0%, transparent 50%); /* Hafif bordo pırıltısı */
    animation: backgroundAnimate 20s infinite alternate;
}

@keyframes backgroundAnimate {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}


/* Giriş Konteyneri */
.login-container {
    background-color: rgba(30, 30, 30, 0.95); /* Koyu gri, hafif şeffaf */
    border-radius: 12px; /* Daha yuvarlak köşeler */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 193, 7, 0.4); /* Derin gölge ve altın ışıltı */
    padding: 40px;
    text-align: center;
    width: 400px; /* Biraz daha geniş */
    max-width: 90%;
    border: 1px solid #FFC107; /* Altın rengi çerçeve */
    animation: fadeIn 0.8s ease-out; /* Giriş animasyonu */
    position: relative; /* Z-index için */
    z-index: 10; /* Arka plan animasyonunun üstünde kalması için */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Stili */
.login-logo {
    width: 120px; /* Logonun boyutu */
    height: auto;
    margin-bottom: 25px; /* Logo ile başlık arasına boşluk */
    border-radius: 50%; /* Yuvarlak logo için */
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.6), 0 0 40px rgba(255, 193, 7, 0.3); /* Altın rengi ışıltı */
    transition: transform 0.3s ease-in-out;
}

.login-logo:hover {
    transform: scale(1.05) rotate(5deg); /* Hafif animasyon */
}

/* Başlık */
.login-container h2 {
    color: #FFD700; /* Altın rengi başlık */
    margin-bottom: 30px;
    font-size: 2.2em; /* Daha büyük başlık */
    letter-spacing: 1.5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Giriş Alanı Grubu */
.input-group {
    position: relative;
    margin-bottom: 25px; /* Daha fazla boşluk */
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px; /* Daha fazla boşluk */
    color: #BBBBBB; /* Açık gri etiket */
    font-size: 0.95em;
    font-weight: 600;
}

.input-group input {
    width: calc(100% - 60px); /* İkon için yer bırak */
    padding: 15px 15px 15px 50px; /* Soldan ikon boşluğu */
    border: 1px solid #555555; /* Koyu gri çerçeve */
    border-radius: 8px; /* Daha yuvarlak köşeler */
    background-color: #333333; /* Koyu arka plan */
    color: #FFFFFF; /* Beyaz metin */
    font-size: 1.1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input:focus {
    border-color: #FFD700; /* Odaklandığında altın çerçeve */
    outline: none;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); /* Altın ışıltı */
}

/* Yer tutucu rengi */
.input-group input::placeholder {
    color: #999999;
}

/* İkonlar */
.input-group i {
    position: absolute;
    left: 15px;
    top: 60%; /* Label'ın altında hizala */
    transform: translateY(-50%);
    color: #FFC107; /* Altın rengi ikonlar */
    font-size: 1.3em; /* Daha büyük ikonlar */
}

/* Giriş Düğmesi */
#loginBtn {
    background: linear-gradient(145deg, #B50000, #8A0000); /* Bordo degrade */
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    width: 100%;
    margin-top: 25px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(181, 0, 0, 0.4); /* Düğme gölgesi */
}

#loginBtn:hover {
    background: linear-gradient(145deg, #8A0000, #6F0000); /* Koyu bordo hover */
    transform: translateY(-2px); /* Hafif yukarı kayma */
    box-shadow: 0 8px 20px rgba(181, 0, 0, 0.6); /* Daha belirgin gölge */
}

#loginBtn:active {
    transform: translateY(0); /* Tıklamada geri gelme */
    box-shadow: 0 3px 10px rgba(181, 0, 0, 0.3);
}

/* Hata Mesajı */
.error-message {
    color: #FFC107; /* Altın rengi hata mesajı */
    margin-top: 20px;
    font-size: 1em;
    opacity: 0; /* Başlangıçta gizli */
    transition: opacity 0.4s ease-out; /* Yumuşak geçiş */
    font-weight: bold;
}

/* Küçük ekranlar için responsive ayarlar */
@media (max-width: 600px) {
    .login-container {
        padding: 30px;
        width: 95%;
    }

    .login-container h2 {
        font-size: 1.8em;
    }

    .input-group input {
        font-size: 1em;
        padding: 12px 12px 12px 45px;
    }

    .input-group i {
        font-size: 1.1em;
        left: 12px;
    }

    #loginBtn {
        padding: 14px 25px;
        font-size: 1.1em;
    }

    .login-logo {
        width: 100px;
    }
}