:root {
    --bg-color: #1c1c1e;
    --container-bg: #2c2c2e;
    --text-color: rgba(235, 235, 245, 0.95);
    --header-text-color: #ffffff;
    --border-color: rgba(84, 84, 88, 0.65);
    --primary-color: #0082FF;
    --danger-color: #ff3b30;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.login-container {
    background: var(--container-bg);
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    max-width: 250px;
    margin-bottom: 20px;
}

h2 {
    color: var(--header-text-color);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #3a3a3c;
    color: var(--text-color);
    font-size: 1em;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}

.form-options label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-options a {
    color: var(--primary-color);
    text-decoration: none;
}

.login-button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
}

.error-message {
    color: var(--danger-color);
    margin-bottom: 15px;
}


/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}
.custom-modal {
    background: var(--container-bg);
    padding: 25px 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    text-align: center;
}
#modalMessage { font-size: 1.1em; line-height: 1.5; margin-bottom: 25px; }
.modal-buttons { display: flex; justify-content: center; }
.modal-buttons button { padding: 10px 20px; font-size: 1em; }
.modal-buttons .modal-ok { background-color: var(--primary-color); color: #fff; }
