/* Styles pour les formulaires d'inscription et de connexion */

.register-container {
    margin: 120px auto 60px auto;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.08);
    padding: 3rem 2.5rem;
    position: relative;
    backdrop-filter: blur(20px);
    border: 3px solid #000000;
    animation: register-fadeIn 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes register-fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effet de survol sur le container */
.register-container:hover {
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
    transition: all 0.3s ease;
    border: 3px solid #333333;
}

/* Alternative avec bordure plus contrastée */
.register-container-alt {
    margin: 120px auto 60px auto;
    max-width: 500px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.1);
    padding: 3rem 2.5rem;
    position: relative;
    border: 3px solid #000000;
    animation: register-fadeIn 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.register-container-alt:hover {
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 0 0 3px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
    transition: all 0.3s ease;
    border: 3px solid #333333;
}

/* Titre du formulaire */
.register-form h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: #000;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

/* Ligne décorative sous le titre */
.register-form h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #08b348, #0b990d);
    border-radius: 2px;
}

/* Messages de notification */
.register-message {
    margin-bottom: 25px;
    padding: 15px 20px;
    border-radius: 12px;
    background: rgba(8, 179, 72, 0.1);
    color: #08b348;
    border: 2px solid #000000;
    font-size: 1rem;
    text-align: center;
    font-weight: 500;
}

.register-message.error {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border: 2px solid #000000;
}

/* Conteneur des champs */
.register-input-box {
    position: relative;
    margin-bottom: 2rem;
}

/* Inputs */
.register-input-box input {
    width: 100%;
    padding: 18px 20px;
    font-size: 1rem;
    border: 2px solid #000000;
    border-radius: 12px;
    background: #fff;
    color: #000;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.register-input-box input:focus {
    border-color: #08b348;
    background: #fff;
    box-shadow: 
        0 0 0 3px rgba(8, 179, 72, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.register-input-box input:hover:not(:focus) {
    border-color: #333333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* Labels flottants */
.register-input-box label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #6b7280;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
    padding: 0 8px;
    font-weight: 500;
}

.register-input-box input:focus + label,
.register-input-box input:not(:placeholder-shown) + label {
    top: -12px;
    left: 16px;
    font-size: 0.85rem;
    color: #08b348;
    font-weight: 600;
    background: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Bouton d'affichage du mot de passe */
.show-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #6b7280;
    padding: 8px;
    margin: 0;
    z-index: 4;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.show-password:hover {
    background: rgba(8, 179, 72, 0.1);
    color: #08b348;
    transform: translateY(-50%) scale(1.1);
}

/* Bouton principal */
.register-btn {
    width: 100%;
    padding: 18px 0;
    background: linear-gradient(135deg, #08b348 0%, #0b990d 100%);
    color: #fff;
    border: 2px solid #000000;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 
        0 4px 15px rgba(8, 179, 72, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

/* Effet de brillance sur le bouton */
.register-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.register-btn:hover {
    background: linear-gradient(135deg, #0b990d 0%, #067f30 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(8, 179, 72, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #333333;
}

.register-btn:hover::before {
    left: 100%;
}

.register-btn:active {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 15px rgba(8, 179, 72, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Texte de bas de page */
.register-form p {
    text-align: center;
    margin-top: 2rem;
    color: #6b7280;
    font-size: 1rem;
    font-weight: 400;
}

.register-form a {
    color: #08b348;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-left: 4px;
}

.register-form a:hover {
    background: rgba(8, 179, 72, 0.1);
    color: #0b990d;
    transform: translateY(-1px);
}

/* Styles pour les champs de date */
.register-input-box input[type="date"] {
    color: #6b7280;
    cursor: pointer;
}

.register-input-box input[type="date"]:focus,
.register-input-box input[type="date"]:not(:placeholder-shown) {
    color: #000;
}

/* Lien mot de passe oublié */
.forgot-password-link {
    text-align: center;
    margin: 1rem 0;
}

.forgot-password-link a {
    color: #6b7280;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
}

.forgot-password-link a:hover {
    color: #08b348;
    background: rgba(8, 179, 72, 0.1);
}

/* Description du formulaire */
.form-description {
    text-align: center;
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .register-container {
        margin: 100px auto 40px auto;
        max-width: 90vw;
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .register-form h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .register-input-box input {
        padding: 16px 18px;
        font-size: 0.95rem;
    }
    
    .register-btn {
        padding: 16px 0;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .register-container {
        margin: 80px auto 30px auto;
        padding: 1.5rem 1rem;
    }
    
    .register-form h1 {
        font-size: 1.8rem;
    }
    
    .register-input-box input {
        padding: 14px 16px;
    }
}

/* Animation d'entrée pour les champs */
.register-input-box {
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.register-input-box:nth-child(1) { animation-delay: 0.1s; }
.register-input-box:nth-child(2) { animation-delay: 0.2s; }
.register-input-box:nth-child(3) { animation-delay: 0.3s; }
.register-input-box:nth-child(4) { animation-delay: 0.4s; }
.register-input-box:nth-child(5) { animation-delay: 0.5s; }
.register-input-box:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation pour le bouton */
.register-btn {
    animation: slideInUp 0.6s ease-out 0.7s forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Style pour les inputs avec erreur */
.register-input-box.error input {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.05);
}

.register-input-box.error input:focus {
    border-color: #dc2626;
    box-shadow: 
        0 0 0 3px rgba(220, 38, 38, 0.1),
        0 4px 12px rgba(220, 38, 38, 0.1);
}

/* Style pour les inputs valides */
.register-input-box.valid input {
    border-color: #08b348;
    background: rgba(8, 179, 72, 0.05);
}

/* Amélioration du focus pour l'accessibilité */
.register-input-box input:focus-visible,
.register-btn:focus-visible,
.show-password:focus-visible {
    outline: 2px solid #08b348;
    outline-offset: 2px;
}