/* Styles généraux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.1);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    margin: 20px auto;
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo img {
    height: 80px;
    width: auto;
}

/* Titres */
h2 {
    color: #0066ff;
    font-size: 24px;
    text-align: center;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px 20px;
}

.loading p {
    color: #0066ff;
    font-size: 16px;
    margin-top: 20px;
}

/* Messages d'erreur et succès */
.error,
.success {
    text-align: center;
    padding: 20px;
}

.error-icon,
.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.error h2 {
    color: #dc3545;
}

.success h2 {
    color: #28a745;
}

.error p,
.success p {
    color: #666;
    margin: 20px 0;
    line-height: 1.6;
}

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

label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

input[type="password"] {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

input[type="password"]:focus {
    outline: none;
    border-color: #0066ff;
}

.password-input-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.toggle-password:hover {
    opacity: 1;
}

.help-text {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

.form-error {
    background-color: #ffe6e6;
    color: #dc3545;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 15px;
    border-left: 4px solid #dc3545;
}

/* Force du mot de passe */
.password-strength {
    margin: 15px 0;
}

.strength-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 4px;
}

#strength-text {
    color: #666;
    font-size: 12px;
}

/* Boutons */
.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-top: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 255, 0.4);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Footer */
.footer {
    text-align: center;
    color: #666;
    font-size: 12px;
    margin-top: 30px;
    padding: 20px;
}

.footer a {
    color: #0066ff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 30px 20px;
    }

    h2 {
        font-size: 20px;
    }

    .logo img {
        height: 60px;
    }
}