﻿
/* --- TEMEL STİLLER VE RESETLEME --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    overflow: hidden; /* Animasyonlu şekillerin taşmasını engeller */
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1a1a2e; /* Fallback background */
}

/* --- HAREKETLİ ARKA PLAN --- */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(45deg, #1a1a2e, #16213e, #0f3460, #e94560);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
}

@@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 20s infinite linear;
}

.shape1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 15%;
    animation-duration: 25s;
}

.shape2 {
    width: 150px;
    height: 150px;
    top: 70%;
    left: 80%;
    animation-duration: 30s;
}

.shape3 {
    width: 100px;
    height: 100px;
    top: 40%;
    left: 5%;
    animation-duration: 18s;
}

.shape4 {
    width: 80px;
    height: 80px;
    top: 80%;
    left: 40%;
    animation-duration: 22s;
}

.shape5 {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 70%;
    animation-duration: 28s;
}

@@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
    }

    100% {
        transform: translateY(0px) rotate(360deg);
    }
}

/* --- GİRİŞ KUTUSU (GLASSMORPHISM) --- */
.login-container {
    width: 400px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); /* Safari için */
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #fff;
    transition: transform 0.3s ease;
}

    .login-container:hover {
        transform: scale(1.02);
    }

    .login-container h1 {
        font-size: 2.5rem;
        margin-bottom: 10px;
        font-weight: 600;
        text-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .login-container p {
        font-size: 1rem;
        margin-bottom: 30px;
        font-weight: 300;
        color: rgba(255, 255, 255, 0.8);
    }

/* --- FORM ELEMANLARI --- */
.input-group {
    position: relative;
    margin-bottom: 35px;
}

    .input-group i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: rgba(255, 255, 255, 0.7);
        transition: color 0.3s ease;
    }

    .input-group .toggle-password {
        left: auto;
        right: 15px;
        cursor: pointer;
    }

.input-field {
    width: 100%;
    padding: 15px 15px 15px 50px;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    outline: none;
    color: #fff;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

    .input-field::placeholder { /* Modern tarayıcılar için */
        color: transparent;
    }

.input-label {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Input'a odaklanıldığında veya içinde veri olduğunda label'ı yukarı taşı */
.input-field:focus + .input-label,
.input-field:not(:placeholder-shown) + .input-label {
    top: -10px;
    left: 45px;
    font-size: 0.8rem;
    color: #e94560;
}

.input-field:focus {
    border-bottom-color: #e94560;
}

    .input-field:focus ~ i {
        color: #e94560;
    }

/* --- EKSTRA SEÇENEKLER --- */
.extra-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.remember-me {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

    .remember-me input {
        margin-right: 8px;
    }

.forgot-password a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

    .forgot-password a:hover {
        color: #e94560;
        text-decoration: underline;
    }

/* --- GİRİŞ BUTONU --- */
.submit-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(45deg, #e94560, #a62337);
    background-size: 200% auto;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
}

    .submit-btn:hover {
        background-position: right center; /* Gradient animasyonu */
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(233, 69, 96, 0.5);
    }

    .submit-btn:active {
        transform: translateY(1px);
    }

/* --- KAYIT OL LİNKİ --- */
.signup-link {
    margin-top: 30px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

    .signup-link a {
        color: #e94560;
        text-decoration: none;
        font-weight: 600;
        transition: text-shadow 0.3s ease;
    }

        .signup-link a:hover {
            text-shadow: 0 0 5px #e94560;
        }

/* --- RESPONSIVE TASARIM --- */
@@media (max-width: 480px) {
    .login-container {
        width: 90%;
        padding: 30px;
    }

        .login-container h1 {
            font-size: 2rem;
        }
}
