/**
 * CSS : Page de connexion
 * Respecte les règles MVC : CSS dans assets/
 */

.login-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
}

.login-form-wrapper {
    background: white;
    border: 2px solid #B1ACAC;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-title {
    text-align: center;
    color: #E95A79;
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: bold;
}

.alert {
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

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

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #E95A79;
}

.form-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin: 0;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.btn-login {
    flex: 1;
    padding: 12px;
    background-color: #E95A79;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #d14968;
}

.btn-login:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-cancel {
    flex: 1;
    padding: 12px;
    background-color: #B1ACAC;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-cancel:hover {
    background-color: #999;
}

.login-links {
    margin-top: 30px;
    text-align: center;
}

.link-forgot {
    display: block;
    color: #4A90E2;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 15px;
}

.link-forgot:hover {
    text-decoration: underline;
}

.separator {
    margin: 20px 0;
    color: #999;
    font-size: 14px;
}

.link-register {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4A90E2;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.link-register:hover {
    background-color: #3a7bc8;
}

.required {
    color: #E95A79;
}
