


.warning {
    color: #cc0000;
    background-color: #fff4f4;
    border: 1px solid #cc0000;
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 16px;
    font-weight: bold;
    max-width: 90%;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    min-height: 100vh;
}

.main-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 40px;
}

.left {
    flex: 1;
    max-width: 580px;
    padding-right: 40px;
}

.logo {
    color: #1877f2;
    font-size: 64px;
    font-weight: bold;
    margin-bottom: 16px;
    line-height: 1;
}

.left p {
    font-size: 28px;
    color: #1c1e21;
    line-height: 1.34;
    font-weight: normal;
    margin: 0;
}

.right {
    flex: 0 0 396px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-form {
    background-color: white;
    padding: 20px;
    width: 100%;
    max-width: 396px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    margin-bottom: 28px;
}

.login-form input {
    font-size: 17px;
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    background-color: #ffffff;
    outline: none;
    transition: border-color 0.2s;
}

.login-form input:focus {
    border-color: #1877f2;
    box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.2);
}

.login-form input::placeholder {
    color: #8a8d91;
}

.login-form button {
    font-size: 20px;
    font-weight: bold;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    color: white;
    background-color: #1877f2;
    cursor: pointer;
    margin-bottom: 16px;
    transition: background-color 0.2s;
}

.login-form button:hover {
    background-color: #166fe5;
}

.login-form button:active {
    background-color: #1464d8;
}

.login-form a {
    color: #1877f2;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    transition: text-decoration 0.2s;
}

.login-form a:hover {
    text-decoration: underline;
}

.login-form hr {
    margin: 20px 0;
    border: none;
    border-top: 1px solid #dadde1;
}

.create-account {
    background-color: #42b72a !important;
    font-size: 17px !important;
    font-weight: bold;
    padding: 12px 16px;
    margin: 0;
}

.create-account:hover {
    background-color: #36a420 !important;
}

.create-account:active {
    background-color: #2d8818 !important;
}

.error {
    color: #e41e3f;
    text-align: center;
    font-size: 14px;
    font-weight: normal;
    margin: 12px 0;
    padding: 8px;
    background-color: #ffebee;
    border-radius: 4px;
    border-left: 4px solid #e41e3f;
}

/* Texte sous le formulaire */
.right::after {
    content: "Créer une Page pour une célébrité, une marque ou une entreprise.";
    font-size: 14px;
    color: #1c1e21;
    text-align: center;
    margin-top: 28px;
    line-height: 1.34;
    max-width: 396px;
}

/* Responsive Tablet */
@media (max-width: 1024px) {
    .main-container {
        padding: 32px 20px;
        gap: 32px;
    }
    
    .left {
        padding-right: 20px;
    }
    
    .logo {
        font-size: 56px;
    }
    
    .left p {
        font-size: 24px;
    }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        padding: 20px;
        gap: 32px;
        justify-content: flex-start;
        min-height: auto;
    }
    
    .left {
        padding: 0;
        text-align: center;
        max-width: 100%;
    }
    
    .right {
        flex: none;
        width: 100%;
        max-width: 400px;
    }
    
    .logo {
        font-size: 48px;
        margin-bottom: 12px;
    }
    
    .left p {
        font-size: 20px;
        margin-bottom: 24px;
    }
    
    .login-form {
        max-width: 100%;
        padding: 16px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .login-form input {
        font-size: 16px;
        padding: 12px 14px;
    }
    
    .login-form button {
        font-size: 18px;
        padding: 10px 14px;
    }
    
    .create-account {
        font-size: 16px !important;
    }
}

/* Responsive Petit Mobile */
@media (max-width: 480px) {
    .main-container {
        padding: 16px;
        gap: 24px;
    }
    
    .logo {
        font-size: 42px;
    }
    
    .left p {
        font-size: 18px;
    }
    
    .login-form {
        padding: 12px;
    }
    
    .login-form input {
        font-size: 16px;
        padding: 10px 12px;
    }
    
    .login-form button {
        font-size: 16px;
        padding: 8px 12px;
    }
}

/* Animation pour l'erreur */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.error {
    animation: fadeIn 0.3s ease-out;
}

/* Focus states améliorés pour l'accessibilité */
.login-form button:focus {
    outline: 2px solid #1877f2;
    outline-offset: 2px;
}

.login-form a:focus {
    outline: 2px solid #1877f2;
    outline-offset: 2px;
    border-radius: 2px;
}