/* Genellikle tüm sayfa için arka plan ve yazı tipi ayarları */
body {
    font-family: Arial, sans-serif;
    background-color: #222;
    color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Giriş formunu ortalamak için kutu stili */
#page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Form genel düzeni */
form {
    background-color: #333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 100%;
}

/* Giriş başlığı */
h1 {
    text-align: center;
    margin-bottom: 20px;
}

/* Form elemanları */
section {
    margin-bottom: 15px;
}

section h2 {
    margin-bottom: 5px;
    font-size: 1.1em;
}

/* Input stilleri */
input[type="text"], input[type="password"] {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #222;
    color: #fff;
}

/* Giriş butonu */
button {
    width: 100%;
    padding: 10px;
    background-color: #ff5555;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
}

button:hover {
    background-color: #ff3333;
}

/* Hata mesajı snackbar */
#snackbar {
    visibility: hidden;
    min-width: 250px;
    background-color: #ff3333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
}

#snackbar.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from { bottom: 0; opacity: 0; }
    to { bottom: 30px; opacity: 1; }
}

@keyframes fadeout {
    from { bottom: 30px; opacity: 1; }
    to { bottom: 0; opacity: 0; }
}
