/* Genel Ayarlar */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
    min-height: 100vh;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-x: hidden;
}

/* Tarih/Saat Alanı */
.banner {
    background: linear-gradient(45deg, #671ba1, #9d11d8);
    width: 100%;
    text-align: right;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    position: fixed;
    top: 0;
    z-index: 100;
}

/* Form Konteyneri */
.container {
    background: rgba(255, 255, 255, 0.06);
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 400px;
    margin: 100px auto 40px auto;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: fadeInUp 0.6s ease;
}

/* Başlık */
h2 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 24px;
}

/* Giriş/Kayıt/Admin Formları */
input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 15px;
    transition: 0.3s;
}

input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
}

input::placeholder {
    color: #ccc;
}

/* Butonlar */
button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: linear-gradient(to right,   #9d11d8,  #671ba1);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(to right, #671ba1, #9d11d8);
    transform: scale(1.03);
}

/* Linkler */
.toggle-links {
    margin-top: 10px;
    text-align: center;
}

.toggle-links a {
    color: #1abc9c;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}

.toggle-links a:hover {
    color: #16a085;
    text-decoration: underline;
}

/* Form Geçişleri */
.form-container {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-container.active {
    display: block;
}

/* Başarı Mesajı */
.success-message {
    background-color: #28a745;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 15px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.3);
    text-align: center;
}

.close-btn {
    background-color: white;
    color: #28a745;
    border: none;
    padding: 5px 10px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
}

/* Giriş Animasyonu */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobil Uyum */
@media (max-width: 480px) {
    .container {
        margin: 120px 20px 30px 20px;
        padding: 25px 15px;
    }

    h2 {
        font-size: 22px;
    }

    .success-message {
        font-size: 14px;
        width: 100%;
    }
}
