/* Genel Ayarlar */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to bottom right, #ffe4e1, #fff0f5), url('img/background-pattern.jpg');
    background-size: cover;
    background-repeat: repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Gül Yaprakları Alanı */
#petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

/* Gül Yaprağı */
.petal {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 30% 30%, #ff4d6d, #ff0066);
    border-radius: 50% 30% 50% 30%;
    opacity: 0.8;
    animation: fall linear infinite, sway ease-in-out infinite;
    z-index: 1;
}

/* Düşme Animasyonu */
@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* Sallanma Animasyonu */
@keyframes sway {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(30px);
    }
}

/* Giriş Kutusu */
.giris-container {
    background: rgba(255, 255, 255, 0.85);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2; /* Güllerin üstünde kalacak */
    animation: fadeIn 1s ease forwards;
}

/* Fade-in Animasyon */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Başlık */
.giris-container h1 {
    color: #8b0000;
    margin-bottom: 10px;
    font-size: 32px;
}

/* Açıklama Yazısı */
.giris-container p {
    margin-bottom: 20px;
    color: #555;
    font-size: 16px;
}

/* Form */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input {
    padding: 10px;
    border: 2px solid #8b0000;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

input:focus {
    border-color: #ff4d6d;
}

/* Giriş Butonu */
button {
    padding: 10px;
    background-color: #ff4d6d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #ff1c4d;
}

/* Hata Mesajı */
#error-message {
    margin-top: 10px;
    color: red;
    font-weight: bold;
    font-size: 14px;
}

/* Mobil Uyum */
@media (max-width: 768px) {
    .giris-container {
        width: 90%;
        padding: 30px 20px;
    }

    .giris-container h1 {
        font-size: 26px;
    }

    .giris-container p {
        font-size: 14px;
    }

    input, button {
        font-size: 14px;
    }
}
