body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: #fff;
    min-height: 100vh;
}

.main-split {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 100vh;
    background: #fff;
}

.left-panel {
    flex: 0 0 480px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    background: #fff;
    min-width: 340px;
    max-width: 520px;
    height: 100vh;
}

.main-logo {
    width: 120px;
    height: auto;
    margin-bottom: 40px;
    align-self: flex-start;
    margin-left: 58px;
    margin-top: 100px;
    position: static;
}

.form-box {
    width: 100%;
    max-width: 360px;
    background: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.form-box.no-box.no-shadow {
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #181c1f;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wave {
    font-size: 1.7rem;
}

.subtitle {
    color: #4b5563;
    font-size: 1.05rem;
    margin-bottom: 28px;
    text-align: left;
    line-height: 1.5;
}

.input-group {
    width: 100%;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 6px;
    font-size: 1rem;
    color: #222b45;
    font-weight: 500;
}

.input-group input {
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 18px;
    font-size: 1rem;
    outline: none;
    background: #f8fafc;
    color: #222b45;
    transition: border 0.2s;
    width: 85%;
    max-width: 260px;
}

.input-group input:focus {
    border-color: #181c1f;
}

.forgot-row {
    width: 100%;
    text-align: right;
    margin-bottom: 10px;
}

.forgot-link {
    color: #2563eb;
    font-size: 0.97rem;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn.main-btn {
    width: 100%;
    padding: 13px 0;
    background: #181c1f;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    margin-bottom: 18px;
    transition: background 0.2s;
}

.btn.main-btn:hover {
    background: #222b45;
}

.divider-row {
    width: 100%;
    display: flex;
    align-items: center;
    margin: 18px 0 10px 0;
}

.divider {
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.divider-text {
    margin: 0 12px;
    color: #9ca3af;
    font-size: 0.97rem;
}

.form-footer {
    margin-top: 10px;
    font-size: 0.97rem;
    color: #666;
    text-align: left;
}

.form-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

.copyright {
    margin-top: 32px;
    font-size: 0.85rem;
    color: #b0b0b0;
    text-align: left;
}

.right-panel {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    min-width: 350px;
    max-width: 1200px;
    height: 100vh;
}

.side-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 64px);
    border-radius: 28px;
    object-fit: cover;
    display: block;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    margin: 12px 12px 12px 0;
}

/* Styles spécifiques pour la page signup (disposition inversée) */
.signup-layout {
    flex-direction: row-reverse;
}

.signup-layout .left-panel {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    min-width: 350px;
    max-width: 1200px;
    height: 100vh;
}

.signup-layout .right-panel {
    flex: 0 0 480px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background: #fff;
    min-width: 340px;
    max-width: 520px;
    height: 100vh;
}

.signup-logo {
    align-self: flex-end;
    margin-right: 48px;
    margin-left: 0;
}

.signup-layout .side-image {
    margin: 12px 0 12px 12px;
}

@media (max-width: 1200px) {
    .main-split {
        flex-direction: column;
    }
    .right-panel {
        order: -1;
        min-height: 180px;
        justify-content: flex-start;
        max-width: 100vw;
        height: auto;
    }
    .side-image {
        max-width: 100vw;
        max-height: 180px;
        border-radius: 0 0 18px 18px;
        height: auto;
    }
    .left-panel {
        max-width: 100vw;
        padding: 0;
        height: auto;
    }
    .main-logo {
        margin: 24px 0 0 16px;
    }
}

@media (max-width: 480px) {
    .form-box {
        padding: 0;
        min-width: unset;
        max-width: 98vw;
    }
    .main-logo {
        width: 80px;
    }
    .welcome-title {
        font-size: 1.3rem;
    }
    .side-image {
        max-height: 120px;
        margin: 12px 2px 12px 2px;
    }
}

/* Responsive pour signup */
@media (max-width: 1200px) {
    .signup-layout {
        flex-direction: column;
    }
    .signup-layout .left-panel {
        order: -1;
        min-height: 180px;
        justify-content: flex-start;
        max-width: 100vw;
        height: auto;
    }
    .signup-layout .side-image {
        max-width: 100vw;
        max-height: 180px;
        border-radius: 0 0 18px 18px;
        height: auto;
        margin: 12px 2px 12px 2px;
    }
    .signup-layout .right-panel {
        max-width: 100vw;
        padding: 0;
        height: auto;
    }
    .signup-logo {
        margin: 24px 16px 0 0;
    }
}

@media (max-width: 480px) {
    .signup-layout .form-box {
        padding: 0;
        min-width: unset;
        max-width: 98vw;
    }
    .signup-logo {
        width: 80px;
    }
    .signup-layout .welcome-title {
        font-size: 1.3rem;
    }
    .signup-layout .side-image {
        max-height: 120px;
    }
}