:root {
    --primary-blue: #4068b1; /* Veya istediğiniz renk */


/* Genel Gövde Stilleri */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    
}

/* Üst Bar */
.top-bar {
    background-color: #4068b1;
    padding: 15px 0;
    text-align: center;
    border-radius: 0px 0px 25px 25px;
}

.top-bar .logo {
    width: 150px;
}

/* Konteyner */
.container {
    position: absolute; /* Absolute konumlandırma */
    top: 50%; /* Yatayda tam ortada */
    left: 50%; /* Dikeyde tam ortada */
    transform: translate(-50%, -50%); /* Gerçek ortalama işlemi */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 400px; /* İstenilen genişlik */
    padding-top: 50px;
    min-height: 300px;
}

/* Form Kutusu */
.box {
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    padding: 20px 30px;
    position: relative;
}

.form-box#forgot-box {
    display: block;
}

.form-box#reset-box {
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay-text {
    font-size: 18px;
    text-align: center;
}

/* Form Alanları */
.form-container {
    position: relative;
}

.form-box {
    display: none;
}

.form-box#login-box {
    display: block;
}

h2 {
    text-align: center;
    margin-bottom: 28px;
    color: #4068b1;
    font-size: 18px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: inline;
    margin-bottom: 5px;
    font-weight: bold;
    color: #4068b1;
    font-size: 15px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 0.75rem;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #4068b1;
    outline: none; /* Varsayılan siyah çizgiyi kaldırır */
    box-shadow: 0 0 0 2px rgba(64, 104, 177, 0.3); /* Hafif bir parlama efekti */
}

input[type="checkbox"] {
    accent-color: #4068b1;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #4068b1;
    color: white;
    border: none;
    border-radius: 0.7rem;
    font-size: 16px;
    cursor: pointer;
}

button:disabled {
    background-color: grey;
    cursor: not-allowed;
}

/* Bağlantılar */
#register-link,
#login-link {
    font-size: 15px;
    color: #4068b1;
    cursor: pointer;
    text-align: center;
}

#register-link:hover,
#login-link:hover {
    text-decoration: underline;
}

#forgot-password-link {
    font-size: 15px;
    color: #4068b1;
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
}

#forgot-password-link a {
    color: #4068b1;
    text-decoration: none;
}

#forgot-password-link a:hover {
    text-decoration: underline;
}

.click-text {
    font-weight: bold;
    padding-top: 10px;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0; /* Veya width: 100% ile birlikte */
    padding: 10px;
    background-color: #4068b1;
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
    color: white;
    text-align: center;
    overflow: hidden; /* Taşmaları engeller */
}

.footer p {
    margin: 0; 
    display: inline-block; 
    vertical-align: middle; 
    font-size: 14px;
}

.footer .version {
    position: absolute; 
    top: 50%; 
    right: 50px; 
    transform: translateY(-50%); 
    font-size: 12px;
}

/* Başarılı ve Hata Bildirimleri */
.success-message,
.error-message {
    text-align: center;
    padding: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    display: none;
    font-size: 16px;
    border-radius: 4px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.success-message {
    background-color: #4caf50;
    color: white;
}

.error-message {
    background-color: #f44336;
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 1.5rem;
    width: 80%;
    max-width: 500px;
}

.modal p {
    font-size: 15px;
    margin-bottom: 25px;
}

.modal a {
    color: #4068b1;
    text-decoration: underline;
}

.modal a:hover {
    color: #305a8b;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 32px; /* Büyüklük */
    font-weight: bold;
    color: #4068b1;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.close-button:hover {
    color: #ff0000; /* Üzerine gelince renk değişimi */
}

/* Anladım Butonu */
.modal .anladim-btn {
    background-color: #4068b1;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
}

.modal .anladim-btn:hover {
    background-color: #305a8b;
}