/* pour connect prend toute la page */
.connexion-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(14, 43, 20, 0.98);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.connexion-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ici aussi mais le container */
.connexion-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: rgba(32, 179, 68, 0.95);
    border: 12px solid #5c3a21;
    outline: 6px solid #2d1a0e;
    border-radius: 0; 
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
    padding: 40px;
    display: flex;
    align-items: center;
}

/* pour que ca prenne toute la hauteur meme si on change le taille de la page */
.connexion-content {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 40px;
}

/* Section gauche : Dessin de l'artiste */
.artist-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.artist-frame {
    width: 100%;
    height: 100%;
    border: 6px dashed #ffd700;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.artist-frame h2 {
    color: #ffd700;
    margin-top: 0;
    text-shadow: 2px 2px 4px #000;
    font-size: 2.2rem;
}

.artist-image-placeholder {
    font-size: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Section droite : Formulaire */
.form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.form-title {
    color: #ffd700;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px #000;
    text-align: center;
}

.connexion-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    color: #f0fdf4;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px #000;
}

.input-group input {
    width: 100%;
    padding: 16px;
    border-radius: 10px;
    border: 3px solid #5c3a21;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Bouton principal */
.connexion-submit-btn {
    background: #ffd700;
    color: #000000;
    border: 3px solid #5c3a21;
    padding: 16px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.connexion-submit-btn:hover {
    background: #7a4e2c;
    transform: scale(1.02);
}

/* Bouton de fermeture (Croix) placé en haut à droite */
.connexion-close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    font-size: 40px;
    color: #e2d8b2;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s, transform 0.2s;
}

.connexion-close-btn:hover {
    color: #ff5555;
    transform: scale(1.2);
}

/* Adaptabilité pour petits écrans */
@media (max-width: 768px) {
    .connexion-content {
        flex-direction: column;
    }
    .connexion-container {
        overflow-y: auto;
    }
}