* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --main-gradient-left: #764ba2;
    --main-gradient-right: #667eea;
    --main-bg: #f5f2fa;
    --main-btn: #764ba2;
    --main-btn-hover: #667eea;
    --main-text: #333;
    --main-accent: #c3b6e6;
}

body {
    background: linear-gradient(to right, var(--main-gradient-left), var(--main-gradient-right));
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.container {
    background: var(--main-bg);
    display: flex;
    flex-direction: row;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 1000px;
    max-height: 90%;
    width: 90%;
    overflow: hidden;
}

.form-section {
    padding: 40px;
    padding-top: 60vh;
    flex: 1;
    max-height: 100vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    /* Optionnel pour un scroll plus doux */
    scroll-behavior: smooth;
}

.form-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fff;
}

h1 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--main-text);
}

.form-section p {
    font-size: 12px;
    margin-bottom: 30px;
    color: #555;
    margin-bottom: 10px;
}

p.subtitle {
    font-size: 12px;
    margin-bottom: 30px;
    color: #555;
    margin-bottom: 10px;
}

label {
    font-size: 12px;
    margin-bottom: 5px;
    color: var(--main-text);
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--main-accent);
    border-radius: 15px;
    background: #faf7ff;
    margin-bottom: 5px;
    font-size: 12px;
    color: var(--main-text);
}

.requirements {
    font-size: 10px;
    color: red;
    margin-bottom: 20px;
}

.submit-btn {
    background: linear-gradient(90deg, var(--main-btn), var(--main-btn-hover));
    color: #fff;
    border: none;
    padding: 15px;
    margin-top: 10px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: linear-gradient(90deg, var(--main-btn-hover), var(--main-btn));
}


.social-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    margin-top: 10px;
}

.social-buttons button {
    flex: 1;
    padding: 5px;
    margin: 5px;
    border-radius: 20px;
    border: 1px solid var(--main-accent);
    background: #faf7ff;
    color: var(--main-text);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.form-footer {
    font-size: 11px;
    text-align: center;
}

.form-footer a {
    color: var(--main-btn);
    text-decoration: none;
    font-weight: bold;
}

.form-footer {
    font-size: 10px;
    text-align: center;
    margin-top: 20px;
}

.form-footer a {
    color: #444;
    text-decoration: underline;
}

.image-section {
    background-image: url('https://images.pexels.com/photos/3184418/pexels-photo-3184418.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
    flex: 1;
    padding: 20px;
    align-items: center;
    display: flex;
    justify-content: center;
}



.close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.85);
    color: #4B2991;
    font-size: 1.7rem;
    font-weight: bold;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background 0.2s;
}

.close-btn:hover {
    background: #e0e0ff;
}

.image-section {
    position: relative;
}

.close-section {
    display: none;
}

.form-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.logo {
    height: 100px;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.help-btn {
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4B2991;
    font-size: 1.3rem;
    transition: background 0.2s;
}

.help-btn:hover {
    background: #e0e0ff;
}

.logo-container {
    display: none;
}

@media (max-width: 768px) {
    .container {
        margin-top: 10vh;
        flex-direction: column;
        /* max-height: 90vh; */
        overflow-y: auto;
        overscroll-behavior: contain;
        /* Optionnel pour un scroll plus doux */
        scroll-behavior: smooth;
    }

    .form-section {
        padding-top: 15vh;
    }

    .logo {
        height: 100px;
        margin-top: 30px;
        box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
    }

    .close-section {
        display: flex;
    }

    body {
        background: none;
        background-size: cover;
        background-position: center;
        position: relative;
        background-image: url('https://images.pexels.com/photos/3184418/pexels-photo-3184418.jpeg');
        flex-direction: column;
    }

    .logo-container {
        display: flex;
    }

    .image-section {
        display: none;
    }
}













.password-criteria {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin: 0.5rem 0 1rem 0;
    flex-wrap: wrap;
}

.criteria-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #d32f2f;
    background: #fff0f0;
    border-radius: 16px;
    padding: 0.2rem 0.7rem;
    transition: color 0.2s, background 0.2s;
}

.criteria-item.valid {
    color: #388e3c;
    background: #e8f5e9;
}

.criteria-item .icon {
    margin-right: 0.4em;
    font-size: 1.1em;
    color: inherit;
}


.password-match-message {
    font-size: 0.95em;
    margin-top: 0.3em;
    min-height: 1.2em;
}

.password-match-message.error {
    color: #d32f2f;
}

.password-match-message.valid {
    color: #388e3c;
}


.email-message {
    font-size: 0.95em;
    margin-bottom: 0.4em;
}

.email-message.error {
    color: #d32f2f;
}

.email-message.valid {
    color: #388e3c;
}











.progress-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    z-index: 1001;
    background-color: white;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progress-circle {
    position: relative;
    width: 90px;
    height: 90px;
    margin-bottom: 1.2em;
}

.progress-circle svg {
    position: absolute;
    top: 0;
    left: 0;
}

.progress-step-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.1em;
    color: #4B2991;
}

.progress-text {
    font-size: 1.1em;
    color: #4B2991;
    text-align: center;
    margin-top: 0.5em;
}

.welcome-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4B2991, #2D8FFF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.7em;
    color: #fff;
    margin-bottom: 1em;
    box-shadow: 0 2px 12px rgba(75, 41, 145, 0.12);
}