/* ===============================
   PAGE REGISTER — MIUZY
================================ */

/* ===== Base ===== */
body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Telegraf', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;

    position: relative;

    /* Dégradé premium */
    background:
        radial-gradient(
            circle at bottom center,
            #3D18D3 0%,
            rgba(61, 24, 211, 0.55) 25%,
            rgba(61, 24, 211, 0) 55%
        ),
        linear-gradient(
            90deg,
            #A73ED0 0%,
            #A73ED0 45%,
            #FFB800 100%
        );
}

/* ===== Overlay blanc doux ===== */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
    z-index: 0;
}

/* ===== Wrapper ===== */
.register-page {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;

    display: flex;
    justify-content: center;

    /* ✅ au lieu de align-items: center; */
    align-items: flex-start;

    /* ✅ plus d'espace en haut */
    padding: 80px 20px 40px;
}

/* ✅ Bonus : si l'écran est assez haut, on recentre verticalement */
@media (min-height: 800px) {
    .register-page {
        align-items: center;
    }
}

/* ===== Carte ===== */
.register-card {
    background: #fff;
    border-radius: 28px;
    padding: 50px 45px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.18);
    text-align: center;
}

/* ===== Logo ===== */
.register-card .logo img {
    max-width: 220px;
    margin: 0 auto 25px;
}

/* ===== Formulaire ===== */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.register-form label {
    text-align: left;
    font-size: 14px;
    font-weight: 500;
}

/* ===== Champs ===== */
.register-form input,
.register-select {
    width: 100%;
    height: 52px;

    padding: 14px 18px;
    border-radius: 999px;
    border: 2px solid #ddd;

    font-size: 14px;
    background-color: #fff;
}

/* Focus */
.register-form input:focus,
.register-select:focus {
    outline: none;
    border-color: #A73ED0;
}

/* =====================================================
   SELECT GENRE — STYLE OVALE
===================================================== */

.register-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    padding-right: 48px;
    cursor: pointer;

    /* flèche custom */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 12px;
}

/* ===== Bouton ===== */
.btn-register {
    margin-top: 18px;
    padding: 14px;
    border-radius: 999px;
    border: 2px solid #3D18D3;
    background: #fff;
    color: #3D18D3;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-register:hover {
    background: #3D18D3;
    color: #fff;
}

/* ===== Erreurs ===== */
.register-error {
    background: #ffe6e6;
    color: #b30000;
    padding: 10px 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* ===== Lien login ===== */
.register-link {
    margin-top: 25px;
    font-size: 14px;
}

.register-link a {
    color: #3D18D3;
    font-weight: 600;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 520px) {
    .register-card {
        padding: 40px 25px;
        border-radius: 22px;
    }

    .register-card .logo img {
        max-width: 190px;
    }
}


