:root {
    --green-dark: #1a3d1f;
    --green-mid: #2d6a35;
    --green-light: #4a9e5c;
    --gold: #c9a84c;
    --gold-light: #e8c97a;
    --cream: #faf6ed;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-mid: #3d3d3d;
    --text-light: #777;
    --shadow: 0 8px 32px rgba(26,61,31,0.12);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.container {
    width: 100%;
    max-width: 450px;
}

/* CARD PRINCIPAL */
.forget-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, var(--green-mid) 0%, var(--green-light) 100%);
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.card-header-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.card-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.card-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* CARD BODY */
.card-body {
    padding: 2rem;
}

/* ÉTAPES */
.steps {
    display: flex;
    margin-bottom: 2rem;
    gap: 0.5rem;
}

.step {
    flex: 1;
    height: 4px;
    background: var(--cream);
    border-radius: 10px;
    overflow: hidden;
}

.step.active {
    background: var(--green-light);
}

/* FORMULAIRES */
.form-section {
    display: none;
}

.form-section.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--cream);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.3s;
    background: var(--white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--green-light);
    box-shadow: 0 0 0 3px rgba(74, 158, 92, 0.1);
}

/* OTP INPUTS */
.otp-inputs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.otp-input {
    width: 50px;
    height: 50px;
    border: 2px solid var(--cream);
    border-radius: var(--radius);
    font-size: 1.5rem;
    text-align: center;
    font-weight: bold;
    color: var(--green-dark);
    transition: all 0.3s;
}

.otp-input:focus {
    outline: none;
    border-color: var(--green-light);
    box-shadow: 0 0 0 3px rgba(74, 158, 92, 0.1);
}

.otp-input.filled {
    border-color: var(--green-light);
    background: rgba(74, 158, 92, 0.05);
}

/* TEXTE INFO */
.info-text {
    background: linear-gradient(135deg, rgba(74, 158, 92, 0.1) 0%, rgba(201, 168, 76, 0.1) 100%);
    border-left: 4px solid var(--green-light);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-text strong {
    color: var(--green-dark);
}

/* TIMER */
.resend-timer {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.resend-link {
    color: var(--green-light);
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.resend-link:hover {
    color: var(--green-dark);
    text-decoration: underline;
}

.resend-link:disabled {
    color: var(--text-light);
    cursor: not-allowed;
    text-decoration: none;
}

/* BOUTONS */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary {
    background: var(--green-light);
    color: var(--white);
}

.btn-primary:hover:not(:disabled) {
    background: var(--green-mid);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 106, 53, 0.3);
}

.btn-primary:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary {
    background: var(--cream);
    color: var(--green-dark);
    border: 2px solid var(--green-light);
}

.btn-secondary:hover {
    background: var(--green-light);
    color: var(--white);
}

/* SUCCÈS */
.success-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.success-icon svg {
    width: 80px;
    height: 80px;
    animation: successAnimation 0.5s ease-out;
}

@keyframes successAnimation {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.success-message {
    text-align: center;
    color: var(--green-dark);
    margin-bottom: 1rem;
}

.success-message h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.success-message p {
    color: var(--text-mid);
}

/* FOOTER LINK */
.card-footer {
    text-align: center;
    padding: 1rem 2rem;
    background: var(--cream);
    border-top: 1px solid #eee;
}

.card-footer p {
    color: var(--text-mid);
    font-size: 0.95rem;
}

.card-footer a {
    color: var(--green-light);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.card-footer a:hover {
    color: var(--green-dark);
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
    }

    .card-body {
        padding: 1.5rem;
    }

    .btn {
        font-size: 0.95rem;
        padding: 0.65rem 1.25rem;
    }

    .otp-input {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
}