/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #F0F3FF;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Container principal */
.container {
    width: 100%;
    max-width: 400px;
}

/* Formulaire de réinitialisation */
.reset-form {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(41, 19, 65, 0.1);
    text-align: center;
    border: 1px solid rgba(176, 179, 222, 0.2);
}

/* Logo */
.logo {
    margin-bottom: 24px;
}

.logo img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    background-color: #F0F3FF;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(41, 19, 65, 0.1);
}

/* Titre */
h2 {
    font-size: 20px;
    font-weight: 600;
    color: #291341;
    margin-bottom: 32px;
    line-height: 1.4;
}

/* Messages */
.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
}

.message.success {
    background-color: rgba(96, 106, 204, 0.1);
    color: #291341;
    border: 1px solid rgba(96, 106, 204, 0.2);
}

.message.error {
    background-color: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.message.hidden {
    display: none;
}

/* Groupe de formulaire */
.form-group {
    margin-bottom: 24px;
    text-align: left;
}

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

/* Champs de saisie */
input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #B0B3DE;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    background-color: #fff;
}

input[type="email"]:focus {
    outline: none;
    border-color: #606ACC;
    box-shadow: 0 0 0 3px rgba(96, 106, 204, 0.1);
}

input[type="email"]:valid {
    border-color: #606ACC;
}

/* Boutons */
.btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: #606ACC;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 24px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(96, 106, 204, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Liens */
.links {
    margin-top: 24px;
}

.link {
    color: #606ACC;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.link:hover {
    color: #291341;
    text-decoration: underline;
}

/* États de chargement */
.loading {
    position: relative;
    color: transparent;
}

.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Indices de mot de passe */
.password-hint {
    display: block;
    font-size: 12px;
    color: #B0B3DE;
    margin-top: 4px;
}

/* Champs de mot de passe */
input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #B0B3DE;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    background-color: #fff;
}

input[type="password"]:focus {
    outline: none;
    border-color: #606ACC;
    box-shadow: 0 0 0 3px rgba(96, 106, 204, 0.1);
}

input[type="password"]:valid {
    border-color: #606ACC;
}

/* Responsive */
@media (max-width: 480px) {
    .reset-form {
        padding: 32px 24px;
    }

    h2 {
        font-size: 18px;
    }

    .logo h1 {
        font-size: 24px;
    }
}
