/* Arka plan ayarı */
.login-bg {
    background: url('../img/background/background.jpg') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Flex kaldırıldı çünkü footer ile uyumsuzluk yaratıyor */
}

/* Sayfayı ortalayan ana kapsayıcı */
.login-wrapper {
    width: 100%;
    min-height: calc(100vh - 150px); /* Ekran boyundan footer ve boşlukları çıkarır */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0; /* Sayfa üstünden ve altından boşluk */
    box-sizing: border-box;
}

.login-box {
    background: rgba(10, 10, 10, 0.96); /* Daha derin siyah */
    border: 2px solid #cc0000;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), 0 0 15px rgba(204, 0, 0, 0.3);
    text-align: center;
    width: 100%;
    max-width: 400px; /* Kutunun çok büyümesini engeller */
    position: relative;
}

/* Logo ve Başlık */
.login-logo {
    margin-bottom: 30px;
}

.login-logo i {
    font-size: 3.5em; /* Bir tık büyütüldü */
    color: #cc0000;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px rgba(204, 0, 0, 0.5));
}

.login-logo h2 {
    color: #fff;
    margin: 0;
    letter-spacing: 3px;
    font-size: 1.8em;
    text-shadow: 2px 2px 5px #000;
}

.login-logo span {
    color: #ffcc00;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Giriş Alanları */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    transition: 0.3s;
}

.input-group input {
    width: 100%;
    padding: 14px 15px 14px 45px; /* Daha dolgun giriş alanları */
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    box-sizing: border-box;
    font-size: 1em;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: #cc0000;
    outline: none;
    background: #222;
    box-shadow: 0 0 10px rgba(204, 0, 0, 0.2);
}

.input-group input:focus + i {
    color: #cc0000;
}

/* Buton */
.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(to right, #cc0000, #880000);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
    text-transform: uppercase;
}

.login-btn:hover {
    background: linear-gradient(to right, #e60000, #cc0000);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(204, 0, 0, 0.5);
}

/* Alt Linkler */
.login-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #222;
    font-size: 0.85em;
}

.login-footer a {
    color: #888;
    text-decoration: none;
    transition: 0.3s;
}

.login-footer a:hover {
    color: #ffcc00;
}

.back-to-home {
    margin-bottom: 20px;
}

.back-to-home a {
    color: #888;
    text-decoration: none;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.back-to-home a:hover {
    color: #fff;
    transform: translateX(-5px);
}

/* --- BU SAYFAYA ÖZEL COMPACT FOOTER --- */
.matrix-footer {
    background: #000 !important;
    margin-top: 0 !important;
    padding-top: 20px !important;
}


.matrix-footer .footer-copyright {
    padding: 30px 0 !important;
}


/* === MARKET LOGIN MOBİL UYUMLULUK === */

@media (max-width: 480px) {
    /* 1. Kapsayıcıyı mobilde daha esnek yapıyoruz */
    .login-wrapper {
        padding: 30px 15px !important;
        min-height: auto !important; /* Küçük ekranlarda sabit yükseklik yerine içeriğe göre uzasın */
    }

    /* 2. Giriş kutusunu ekran kenarlarına tam yapıştırmıyoruz */
    .login-box {
        padding: 30px 20px !important;
        width: 100% !important;
        border-width: 1px !important; /* Mobilde çok kalın çerçeve kaba durabilir */
    }

    /* 3. Logoyu ve Başlığı Mobilde Küçültüyoruz */
    .login-logo i {
        font-size: 2.5em !important;
        margin-bottom: 10px !important;
    }

    .login-logo h2 {
        font-size: 1.4em !important;
        letter-spacing: 2px !important;
    }

    /* 4. Giriş Alanlarını Parmakla Basılabilir Hale Getiriyoruz (Touch-Friendly) */
    .input-group input {
        padding: 12px 15px 12px 40px !important;
        font-size: 16px !important; /* iOS'ta otomatik zoom'u engellemek için en az 16px */
    }

    .login-btn {
        padding: 12px !important;
        font-size: 1em !important;
    }

    /* 5. Alt Linkler Mobilde Daha Okunaklı */
    .login-footer {
        display: flex;
        flex-direction: column; /* Mobilde linkleri alt alta diziyoruz */
        gap: 10px;
    }

    .login-footer .sep {
        display: none; /* Aradaki dikey çizgiyi ( | ) kaldırıyoruz */
    }

    .login-footer a {
        font-size: 1rem !important;
        padding: 5px 0;
    }
}