@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* ===== Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* ===== Page (fond) ===== */
.page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background-image: url('https://images.unsplash.com/photo-1695221087406-257eca10a2e7?q=80&w=2069&auto=format&fit=crop');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* ===== Carte (la boîte transparente) ===== */
.card {
    width: 100%;
    max-width: 400px;
    padding: 2rem 3rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(55px);
}

/* ===== Titre et texte ===== */
.title {
    font-size: 2rem;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

.text {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 10px;
}

/* ===== Champ ===== */
.field {
    position: relative;
    width: 100%;
    margin: 25px 0 10px;
    border-bottom: 2px solid #fff;
}

.field-input {
    width: 100%;
    height: 55px;
    padding: 0 35px 0 5px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #fff;
}

.field-label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    color: #fff;
    font-size: 1rem;
    pointer-events: none;
    transition: 0.3s ease;
}

/* Le label monte quand on clique ou qu'il y a du texte */
.field-input:focus ~ .field-label,
.field-input:not(:placeholder-shown) ~ .field-label {
    top: -5px;
    font-size: 0.8rem;
}

.field-icon {
    position: absolute;
    right: 8px;
    top: 18px;
    color: #fff;
    font-size: 1.2rem;
    pointer-events: none;
}

/* ===== Erreurs ===== */
.error {
    color: #ffe0e0;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 15px;
}

.error ul {
    list-style: none;
}

.error li {
    margin: 3px 0;
}

/* ===== Bouton ===== */
.button {
    width: 100%;
    min-height: 42px;
    margin-top: 15px;
    border: none;
    border-radius: 40px;
    background-color: #fff;
    color: #222;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* ===== Lien "Retour à la connexion" ===== */
.link {
    display: block;
    margin: 25px 0 10px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.text-link {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
}

.text-link:hover {
    text-decoration: none;
}

.text + .text {
    margin-top: 15px;
}
/* ===== Carte large (pour les écrans plus grands) ===== */
.card-wide {
    max-width: 650px;
    padding: 2rem;
}

.card-wide .title {
    font-size: 1.7rem;
}

.card-wide .text {
    font-size: 1rem;
}
/*-------nouveau mot de passe------*/
.card-NewPassword {
    max-width: 650px;
    padding: 2.5rem 3.5rem;
}

.card-NewPassword .title {
    font-size: 2.2rem;
    margin-bottom: 30px;
}

.card-NewPassword .text {
    font-size: 1.05rem;
    line-height: 1.7;
}

.card-NewPassword .field {
    margin: 30px 0 10px;
}

/* ===== Mobile ===== */
@media (max-width: 576px) {
    .card {
        padding: 1.5rem;
    }

    .title {
        font-size: 1.6rem;
    }
}