* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #f0f2f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Bouton retour */
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    background: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    z-index: 10;
}

.back-button:hover {
    background: #f5f5f5;
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.back-button i {
    font-size: 0.9rem;
}

/* Container principal */
.container {
    display: flex;
    width: 1200px;
    max-width: 95%;
    background-color: white;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    min-height: 700px;
    margin: 20px;
}

/* Panneau gauche */
.left-panel {
    flex: 1.2;
    background: linear-gradient(145deg, #25969a 0%, #f2c834 46%, #2596be 100%);
    color: white;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
}

.brand {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 60px;
    letter-spacing: 1px;
}

.benefits {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.benefit-item i {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 15px;
}

.benefit-item h2 {
    margin-bottom: 8px;
    font-size: 1.4rem;
}

.benefit-item p {
    line-height: 1.6;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Panneau droit */
.right-panel {
    flex: 1;
    padding: 50px 45px;
    background-color: white;
    display: flex;
    flex-direction: column;
}

/* Onglets */
.tab-container {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    background: #f5f5f5;
    padding: 5px;
    border-radius: 50px;
}

.tab-button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s;
}

.tab-button.active {
    background: white;
    color: #4158D0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Formulaires */
.form {
    display: none;
    animation: fadeIn 0.5s;
}

.form.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.form > p {
    color: #666;
    margin-bottom: 30px;
}

/* Groupes d'input */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #4158D0;
    box-shadow: 0 0 0 3px rgba(65, 88, 208, 0.1);
}

.password-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #888;
}

/* Options */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.forgot-link, .terms-link {
    color: #4158D0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.forgot-link:hover, .terms-link:hover {
    text-decoration: underline;
}

/* Checkbox personnalisé */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
    cursor: pointer;
    position: relative;
    padding-left: 25px;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: #4158D0;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #4158D0;
    border-color: #4158D0;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Boutons */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(145deg, #4158D0, #C850C0);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(65, 88, 208, 0.3);
}

.btn-google {
    width: 100%;
    padding: 14px;
    background-color: white;
    color: #333;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-google:hover {
    background-color: #f8f8f8;
    border-color: #4158D0;
}

.btn-google i {
    color: #DB4437;
    font-size: 1.2rem;
}

/* Terms pour inscription */
.terms {
    margin: 20px 0;
    color: #666;
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.terms .checkbox-container {
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        margin: 80px 20px 20px 20px;
    }

    .back-button {
        top: 10px;
        left: 10px;
    }

    .left-panel {
        padding: 40px;
    }

    .brand {
        margin-bottom: 30px;
    }

    .benefit-item {
        gap: 15px;
    }

    .benefit-item i {
        font-size: 1.5rem;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .right-panel {
        padding: 30px 20px;
    }

    .tab-container {
        flex-direction: column;
        border-radius: 25px;
    }

    .tab-button {
        width: 100%;
    }

    .options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .terms {
        flex-wrap: wrap;
    }
}



/* Section téléchargement application */
.app-download-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.app-download-text {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    position: relative;
}

.app-download-text::before,
.app-download-text::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: #e0e0e0;
}

.app-download-text::before {
    left: 0;
}

.app-download-text::after {
    right: 0;
}

.app-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.app-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #000;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 160px;
}

.app-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: #1a1a1a;
}

.app-button i {
    font-size: 2rem;
}

.app-button-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.app-button-text .small-text {
    font-size: 0.7rem;
    opacity: 0.8;
}

.app-button-text .store-name {
    font-size: 1rem;
    font-weight: 600;
}

/* Version Android (couleur différente) */
.app-button:last-child {
    background: #3b3b3b;
}

.app-button:last-child:hover {
    background: #4a4a4a;
}

/* Responsive */
@media (max-width: 600px) {
    .app-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .app-button {
        width: 100%;
        justify-content: center;
    }
    
    .app-download-text::before,
    .app-download-text::after {
        width: 20px;
    }
}

/* Version avec les couleurs de votre thème (optionnel) */
.app-button.theme-colors {
    background: linear-gradient(145deg, #2596be, #1a6a8a);
}

.app-button.theme-colors:hover {
    background: linear-gradient(145deg, #2a7a9e, #1e5f7a);
}