:root {
    --primary: #0056b3;
    --primary-hover: #004494;
    --bg: #f4f7f6;
    --text: #333;
    --white: #fff;
    --danger: #dc3545;
    --success: #28a745;
    --border: #ccc;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-container {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
}

.auth-container h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 20px;
}

.form-group { margin-bottom: 15px; position: relative; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; font-size: 14px; }
.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 16px;
}

/* Password Field & Eye Icon */
.password-wrapper { position: relative; }
.password-wrapper input { padding-right: 40px; }
.eye-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    user-select: none;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background: var(--primary);
    color: var(--white);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}
.btn:hover { background: var(--primary-hover); }
.btn-success { background: var(--success); }

.switch-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}
.switch-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

/* Validation Message */
.val-msg { font-size: 12px; color: var(--danger); display: none; margin-top: 5px; }

/* Success Modal */
#success-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}
.modal-content h3 { color: var(--success); margin-bottom: 15px; }
.modal-content p { font-size: 15px; margin-bottom: 10px; line-height: 1.5; }