@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

:root {
    --primary-color: #4a90e2;
    --secondary-color: #357abd;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --surface-light: rgba(255, 255, 255, 0.95);
    --success-color: #16a34a;
    --success-bg: rgba(34, 197, 94, 0.1);
    --error-color: #dc2626;
    --error-bg: rgba(239, 68, 68, 0.1);
    --info-color: #2563eb;
    --info-bg: rgba(59, 130, 246, 0.1);
    --warning-color: #d97706;
    --warning-bg: rgba(251, 191, 36, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to bottom, 
        #4a90e2 0%, 
        #357abd 40%, 
        #2c7cc4 65%, 
        #ffffff 65%, 
        #f8fafc 100%);
    background-repeat: no-repeat;
    background-size: 100% 100vh;
    min-height: 100vh;
    color: var(--text-dark);
}

/* Fix pour iOS Safari */
@supports (-webkit-touch-callout: none) {
    body {
        background-attachment: scroll;
        position: relative;
    }
    
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(to bottom, 
            #4a90e2 0%, 
            #357abd 40%, 
            #2c7cc4 65%, 
            #ffffff 65%, 
            #f8fafc 100%);
        z-index: -1;
        pointer-events: none;
    }
}

.container {
    max-width: 800px; /* Élargi de 500px à 800px */
    margin: 0 auto;
    padding: 80px 20px; /* Réduit de 100px à 80px */
    position: relative;
    z-index: 2;
}

.header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease-out;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.form-container {
    background: var(--surface-light);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 60px 80px; /* Augmenté de 50px à 60px vertical, 80px horizontal */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: slideIn 0.5s ease-out;
}

.form-title {
    color: #4a90e2;
    font-size: 2rem; /* Augmenté de 1.8rem à 2rem */
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.form-description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 35px;
    line-height: 1.6;
    font-size: 1.05rem; /* Légèrement plus grand */
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.form-group {
    margin-bottom: 30px; /* Augmenté de 25px à 30px */
}

label {
    display: block;
    margin-bottom: 10px; /* Augmenté de 8px à 10px */
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

input[type="email"] {
    width: 100%;
    padding: 18px 24px; /* Augmenté de 16px 20px */
    border: 2px solid rgba(74, 144, 226, 0.2);
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

input:focus {
    outline: none;
    border-color: #4a90e2;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    transform: translateY(-2px);
}

input:invalid:not(:placeholder-shown) {
    border-color: var(--error-color);
}

.btn {
    width: 100%;
    padding: 20px; /* Augmenté de 18px à 20px */
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px; /* Augmenté de 16px à 17px */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.3);
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.loading {
    display: none;
}

.btn:disabled .btn-text {
    display: none;
}

.btn:disabled .loading {
    display: inline;
}

.links {
    text-align: center;
    margin-top: 35px; /* Augmenté de 30px */
    padding-top: 35px; /* Augmenté de 30px */
    border-top: 1px solid rgba(74, 144, 226, 0.1);
}

.links p { 
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.links a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.links a:hover {
    color: #357abd;
    text-decoration: underline;
}

.alert {
    padding: 18px 24px; /* Augmenté */
    border-radius: 12px;
    margin-bottom: 30px; /* Augmenté de 25px */
    font-weight: 500;
    animation: slideIn 0.3s ease;
    font-size: 0.95rem;
}

.alert-error {
    background: var(--error-bg);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-color);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.alert-info {
    background: var(--info-bg);
    color: var(--info-color);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.info-box {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 10px;
    padding: 18px 24px; /* Augmenté */
    margin-bottom: 25px; /* Augmenté */
    color: #1976d2;
    font-size: 0.95rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.info-box i {
    margin-right: 10px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);