﻿/* Evrensel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Body Stili */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 15px;
    overflow-x: hidden; /* Yatay kaydırmayı önler */

    /* Mobil cihazlarda daha iyi görünürlük için geliştirilmiş arka plan */
    /* Degradeye biraz daha opaklık ekledik */
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.95) 0%, rgba(37, 117, 252, 0.95) 100%),
                url('https://images.unsplash.com/photo-1607083206968-13611e3d76db?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    background-attachment: fixed; /* Bazı cihazlarda arka planın kaydırmada sabit kalmasını sağlar */
}

/* Giriş Formu Konteyneri */
.container {
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    z-index: 10;
    animation: fadeIn 0.8s ease-out;
}

/* Market Logosu Bölümü */
.market-logo {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.market-logo h1 {
    font-size: 28px;
    color: white;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 100, 0, 0.8);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.market-logo h1::after {
    content: "🔥";
    margin-left: 8px;
    animation: fire 1s infinite alternate;
}

.market-logo p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-style: italic;
    margin-top: 5px;
}

/* Giriş Başlığı Bölümü */
.login-header {
    text-align: center;
    margin-bottom: 20px;
}

.login-header h2 {
    font-size: 24px;
    color: white;
    margin-bottom: 8px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.login-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
}

/* Giriş Formu Stili */
#loginForm {
    margin-bottom: 25px;
}

fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

legend {
    display: none;
}

/* Input Grubu Stili */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    /* İkon rengi daha belirgin yapıldı */
    color: rgba(255, 255, 255, 0.95); /* Daha belirgin bir beyaz */
    font-size: 16px;
}

.input-group input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    /* Arka plan biraz daha opak yapıldı */
    background: rgba(255, 255, 255, 0.25); /* Daha az şeffaf */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    outline: none;
    /* Metin rengi daha belirgin yapıldı */
    color: white; /* Net beyaz */
    font-size: 15px;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    /* Placeholder rengi daha belirgin yapıldı */
    color: rgba(255, 255, 255, 0.85); /* Daha belirgin gri-beyaz */
}

.input-group input:focus {
    /* Fokuslandığında arka plan biraz daha opak */
    background: rgba(255, 255, 255, 0.35); /* Daha da az şeffaf */
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 10px rgba(255, 100, 0, 0.4);
}

/* Seçenekler Bölümü (Beni Hatırla ve Şifremi Unuttum) */
.options {
    display: flex;
    flex-wrap: wrap; /* Küçük ekranlarda öğelerin alt satıra geçmesini sağlar */
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    gap: 10px; /* Sarıldığında öğeler arasındaki boşluk */
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input {
    accent-color: #ff6a00;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.forgot-password {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap; /* Küçük ekranlarda kelime kırmasını önler */
}

.forgot-password:hover {
    color: #ffd700;
    text-decoration: underline;
}

/* Giriş Butonu Stili */
.login-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, #ff6a00, #ff3300);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 75, 43, 0.4);
    margin-bottom: 10px;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 75, 43, 0.6);
}

.login-button:active {
    transform: translateY(1px);
}

/* Sosyal Medya Bölümü */
.social-section {
    text-align: center;
    padding: 20px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin-top: 25px;
}

.social-section h2 {
    font-size: 20px;
    color: white;
    margin-bottom: 12px;
    text-shadow: 0 0 5px rgba(255, 200, 0, 0.8);
}

.social-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
}

/* Doğrulama Stili */
.validation-summary-errors {
    background: rgba(255, 50, 50, 0.2);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    color: #ffdddd;
    border: 1px solid rgba(255, 100, 100, 0.5);
    font-size: 14px;
}

.field-validation-error {
    display: block;
    color: #ffcccc;
    margin-top: 5px;
    font-size: 13px;
    padding-left: 5px;
}

/* Parçacık Animasyonu */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: float 15s infinite linear;
}

/* Keyframe Animasyonları */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fire {
    0% {
        text-shadow: 0 0 5px #ff3300, 0 0 10px #ff6600;
    }
    100% {
        text-shadow: 0 0 15px #ff0000, 0 0 20px #ff5500;
    }
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Mobil Optimizasyonlar */
@media (max-width: 480px) {
    .container {
        padding: 25px 15px;
        border-radius: 15px;
    }

    .market-logo {
        padding: 12px;
        margin-bottom: 20px;
    }

    .market-logo h1 {
        font-size: 24px;
    }

    .market-logo p {
        font-size: 14px;
    }

    .login-header h2 {
        font-size: 22px;
    }

    .login-header p {
        font-size: 14px;
    }

    .input-group {
        margin-bottom: 15px;
    }

    .input-group input {
        padding: 12px 12px 12px 40px;
        font-size: 14px;
    }

    .input-group i {
        left: 12px;
        font-size: 15px;
    }

    .options {
        flex-direction: column; /* Küçük ekranlarda öğeleri dikey olarak sıralar */
        align-items: flex-start; /* Sıralanmış öğeleri sola hizalar */
        gap: 8px; /* Sıralanmış öğeler arasında boşluk bırakır */
    }

    .login-button {
        padding: 13px;
        font-size: 16px;
    }

    .social-section {
        padding: 15px 10px;
    }

    .social-section h2 {
        font-size: 18px;
    }

    .social-section p {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 20px 12px;
    }

    .market-logo h1 {
        font-size: 22px;
    }

    .login-header h2 {
        font-size: 20px;
    }

    .input-group input {
        padding: 11px 10px 11px 38px;
    }
}