/*
PAGE DE CONNEXION
*/

/*
Conteneur principal
*/
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 450px;
    margin: 2rem auto 4rem auto;
    padding: 0 1.5rem;
}

#logo-connexion {
    width: 130px;
    height: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

/* 
Formulaire de connexion
*/
.form-connexion {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: #ffffff;
    padding: 2.2rem;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.form-connexion input[type="email"],
.form-connexion input[type="password"] {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-connexion input:focus {
    border-color: #d4a359;
    box-shadow: 0 0 10px rgba(212, 163, 89, 0.25);
}

.form-connexion input::placeholder {
    color: #94a3b8;
}

/* 
Message d'information de mot de passe
*/
#passwordreset {
    font-size: 0.95rem;
    font-weight: normal;
    color: #64748b;
    text-align: center;
    line-height: 1.45;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    width: 100%;
}

/*
Boutons
*/

/*
Bouton Connexion
*/
#btn-submit {
    width: 100%;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 10px;
    background: #0284c7 !important;
    color: #ffffff !important;
    font-size: 1.35rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    margin-top: 0.5rem;
}

#btn-submit:hover {
    background: #0369a1 !important;
}

#btn-submit:active {
    transform: scale(0.98);
}

/*
 Bouton Inscription 
*/
main > a[href="register.html"] {
    width: 100%;
    text-decoration: none;
}

main > a[href="register.html"] button {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #0284c7;
    border-radius: 10px;
    background: transparent !important;
    color: #0284c7 !important;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

main > a[href="register.html"] button:hover {
    background: rgba(2, 132, 199, 0.08) !important;
    color: #0369a1 !important;
    border-color: #0369a1;
}

/*
Responsive Design
*/

@media (max-width: 768px) {
    main {
        padding: 0 1rem;
        margin: 1.5rem auto 3rem auto;
    }

    .form-connexion {
        padding: 1.5rem 1.2rem;
        gap: 1rem;
    }

    #logo-connexion {
        width: 110px;
    }

    .form-connexion input[type="email"],
    .form-connexion input[type="password"] {
        font-size: 1.1rem;
        padding: 0.75rem 0.9rem;
    }

    #btn-submit,
    main > a[href="register.html"] button {
        font-size: 1.2rem;
    }

    #passwordreset {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
}