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

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

body {
    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;
}

section {
    position: relative;
    width: 100%;
    max-width: 400px;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(55px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 3rem;
}

form {
    width: 100%;
}

h1 {
    font-size: 2rem;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

.inputbox {
    position: relative;
    width: 100%;
    margin: 25px 0;
    border-bottom: 2px solid #fff;
}

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

.inputbox input:focus ~ label,
.inputbox input:not(:placeholder-shown) ~ label {
    top: -5px;
    font-size: 0.8rem;
}

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

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

.erreur {
    display: block;
    color: #ffe0e0;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 6px 0 10px;
}

.erreur ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.erreur li {
    list-style: none;
    margin: 3px 0;
}

.message-success {
    background: #e8f5e9;
    color: #155724;
    border: 1px solid #81c784;
    border-left: 5px solid #2e7d32;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 15px 0 20px;
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: left;
}

.forget {
    margin: 25px 0;
    font-size: 0.85rem;
    color: #fff;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.forget label {
    display: flex;
    align-items: center;
}

.forget label input {
    margin-right: 5px;
}

.forget a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.forget a:hover {
    text-decoration: underline;
}

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

button:hover {
    background-color: rgba(255, 255, 255, 0.8);
}
.captcha {
    margin: 20px 0;
}

.register,
.login {
    font-size: 0.85rem;
    color: #fff;
    text-align: center;
    margin: 25px 0 10px;
}

.register p,
.login p {
    color: #fff;
    font-weight: 500;
}

.register p a,
.login p a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
}

.register p a:hover,
.login p a:hover {
    text-decoration: underline;
}

.inputbox {
    position: relative;
    width: 100%;
    margin: 25px 0 10px;
    border-bottom: 2px solid #fff;
}

.erreur {
    display: block;
    color: #ffe0e0;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 15px;
}
/* ===== Responsive ===== */
@media (max-width: 576px) {
    section {
        max-width: 420px;
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    .inputbox {
        margin: 20px 0;
    }

    .forget {
        flex-wrap: wrap;
    }
}