/* Styles pour les pages d'authentification */
:root {
    --primary-color: #FF6A63; /* Couleur du bouton selon la spécification */
    --secondary-color: #02163D; /* Couleur du texte selon la spécification */
    --background-color: #F7FAFC; /* Couleur de fond selon la spécification */
    --input-border-color: #E0E0E0;
    --input-focus-color: #FF6A63;
}

body {
    background-color: var(--background-color);
    font-family: 'Lato', Arial, sans-serif; /* Typographie Lato selon la spécification */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.auth-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
    overflow: hidden;
    background-color: var(--background-color);
}

.auth-form-container {
    flex: 1;
    padding: 40px 60px;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
}

.auth-form {
    width: 100%;
    max-width: 470px;
}

.auth-image-container {
    flex: 1;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 50px;
}

.auth-logo {
    max-width: 200px;
    margin-bottom: 30px;
    align-self: center;
}

.auth-title {
    color: var(--secondary-color);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    margin-top: 40px;
    width: 100%;
    text-align: left;
}

.auth-subtitle {
    color: var(--secondary-color);
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.8;
    width: 100%;
    text-align: left;
}

.auth-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.auth-form .form-group {
    margin-bottom: 20px;
    position: relative;
    width: 100%;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--input-border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    background-color: white;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
    border-color: var(--input-focus-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 111, 97, 0.2);
}

.auth-form .password-toggle {
    position: absolute;
    right: 10px;
    top: 50px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
}

.auth-form .btn-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.auth-form .btn-submit:hover {
    background-color: #E5645A;
}

.main-link {
    display: block;
    text-align: right;
    margin-top: 10px;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
}

.main-link:hover {
    color: var(--primary-color);
}

.auth-form .error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
}

.auth-error-message {
    color: #e74c3c;
    font-size: 14px;
    margin: 20px 0;
    width: 100%;
    text-align: left;
}

.password-help-text {
    font-size: 12px;
    color: var(--secondary-color);
    opacity: 0.7;
    margin-top: 8px;
    padding: 10px;
    background-color: rgba(2, 22, 61, 0.05);
    border-radius: 5px;
}

.auth-links {
    margin-top: 20px;
    width: 100%;
    text-align: center;
}

.auth-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.auth-link:hover {
    color: var(--primary-color);
}

.auth-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    border-radius: 20px;
}

.auth-logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 60%;
    z-index: 1;
}

.auth-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.1;
}

/* Responsive design */
@media (max-width: 992px) {
    .auth-container {
        flex-direction: column;
        max-width: 500px;
        margin: 20px;
        height: auto;
    }
    
    .auth-form-container {
        padding: 30px;
        border-radius: 20px;
    }
    
    .auth-image-container {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-container {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }
    
    .auth-form-container {
        padding: 20px;
        min-height: 100vh;
    }
    
    .auth-form-container {
        padding: 20px;
        justify-content: center;
    }
    
    .auth-logo {
        max-width: 150px;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .auth-subtitle {
        font-size: 14px;
    }
}
