﻿.reset-wrapper {
    min-height: 100vh;
    background-color: #F4F5F8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.reset-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2.5rem 2rem;
    max-width: 460px;
    width: 100%;
}

.reset-header {
    text-align: center;
    margin-bottom: 2rem;
}

.reset-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: #e8edf5;
    border-radius: 50%;
    margin-bottom: 1.25rem;
}

.reset-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1A428A;
    margin: 0 0 0.5rem 0;
}

.reset-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Input container — style conservé */
.input-container {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.input-container label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.input-element {
    padding: 0.65rem 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #111827;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.input-element:focus {
    border-color: #1A428A;
    box-shadow: 0 0 0 3px rgba(26, 66, 138, 0.12);
}

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #1A428A;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-btn:hover {
    background-color: #153472;
}

.validation-message {
    font-size: 0.8rem;
    color: #dc2626;
}

.password-strength-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-top: 6px;
}

.strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-fill.weak {
    background: #f44336;
}

.strength-fill.fair {
    background: #ff9800;
}

.strength-fill.good {
    background: #ffc107;
}

.strength-fill.strong {
    background: #8bc34a;
}

.strength-fill.very-strong {
    background: #4caf50;
}

.strength-label {
    font-size: 0.75rem;
    font-weight: 500;
}

.strength-label.weak {
    color: #f44336;
}

.strength-label.fair {
    color: #ff9800;
}

.strength-label.good {
    color: #ffc107;
}

.strength-label.strong {
    color: #8bc34a;
}

.strength-label.very-strong {
    color: #4caf50;
}

.password-rules {
    list-style: none;
    padding: 4px 0 0;
    margin: 0;
    font-size: 0.75rem;
}

.password-rules li.valid {
    color: #4caf50;
}

.password-rules li.valid::before {
    content: "✓ ";
}

.password-rules li.invalid {
    color: #9e9e9e;
}

.password-rules li.invalid::before {
    content: "✗ ";
}

.invalid {
    outline: none !important;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper .input-element {
    width: 100%;
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    display: flex;
    align-items: center;
}

.toggle-password:hover {
    color: #333;
}


.error-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}