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

body {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    overflow: hidden;
    position: relative;
}

    body::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.3), transparent 70%);
        animation: wave 15s infinite linear;
        z-index: 0;
    }

@keyframes wave {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.wave-left {
    transform: scaleX(-1);
}

.card {
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    transition: transform 0.3s ease;
}

.card_2 {
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    z-index: 1;
    width: 100%;
    max-width: 600px;
    transition: transform 0.3s ease;
}


.card:hover {
    transform: translateY(-5px);
}

.btn-primary {
    background-color: #4da6ff;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

    .btn-primary:hover {
        background-color: #3399ff;
    }

.form-control {
    border-radius: 50px;
    padding: 0.75rem 1rem;
    border: 1px solid #c2e9fb;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

    .form-control:focus {
        border-color: #4da6ff;
        box-shadow: 0 0 0 0.2rem rgba(77, 166, 255, 0.25);
    }

.card-title {
    color: #1a3d7c;
    font-weight: 700;
    margin-bottom: 2rem;
}

small {
    color: #333;
}

.text-danger {
    color: #e74c3c !important;
}

.form-check-label {
    font-weight: 500;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.bg-light {
    background-color: #f9fafb !important;
}

.bg-primary {
    background-color: #6c63ff !important; /* Qonto-style primary */
    color: #fff;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 25px rgba(0,0,0,0.15);
    }

.form-control {
    border-radius: 4px !important;
    border: 1px solid #d1d7e0 !important;
    padding: 10px 15px;
    transition: all 0.2s ease-in-out;
}

    .form-control:focus {
        border-color: #6c63ff;
        box-shadow: 0 0 5px rgba(108,99,255,0.3);
        outline: none;
    }

.btn-primary, .btn-outline-danger, .btn-outline-dark {
    border-radius: 25px;
    padding: 10px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .bg-primary {
        display: none;
    }
}

.btn-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #6f42c1, #7952cc);
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

    .btn-register:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.2);
        background: linear-gradient(135deg, #7952cc, #6f42c1);
    }

    .btn-register i {
        font-size: 1.1rem;
    }

.option-card {
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background-color: #fff;
    color: #333;
}

    .option-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 25px rgba(0,0,0,0.15);
    }

    .option-card h5 {
        color: #1a3d7c;
    }

    .option-card p {
        color: #555;
    }

button.option-card {
    text-align: left;
}




/* ======================================= */
/* 1. Styles des Titres Améliorés          */
/* ======================================= */

.title-main {
    /* Style pour le titre principal (H1: Capps : Inscription) */
    font-size: 2.2rem;
    color: #3f51b5; /* Bleu institutionnel fort */
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 15px; /* Espace pour la ligne */
    margin-bottom: 0 !important; /* Géré par le padding-bottom */
}

    /* Soulignement stylisé pour le titre principal */
    .title-main::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 70px; /* Longueur de la ligne */
        height: 3px; /* Épaisseur */
        background-color: #ffc107; /* Jaune/Or pour accent */
        border-radius: 2px;
    }

.title-subtitle {
    /* Style pour le message secondaire (H3: Choisissez le moyen...) */
    font-size: 1.15rem;
    font-weight: 500;
    color: #6c757d; /* Gris secondaire */
    margin-top: 10px; /* Espace par rapport au titre principal */
}




.title-side {
    /* Style pour le titre de la colonne latérale (H2) */
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px !important;
}



.registration-bg {
    background-color: #f9fafb !important;
    overflow: hidden;
    position: relative;
}

.wave {
    /* L'onde couvre 200% de la surface pour que la rotation soit grande et lisse */
    width: 200%;
    height: 200%;
    position: absolute;
    top: -50%;
    left: -50%;
    /* Couleur : un bleu primaire très transparent */
    background: radial-gradient(circle at 50% 50%, rgba(108, 99, 255, 0.15), transparent 65%);
    /* Animation de rotation */
    animation: wave-animation 20s infinite linear;
    z-index: 0;
    opacity: 1;
    transform-origin: 50% 50%;
}

/* S'assurer que la carte reste au-dessus de l'onde */

/* ======================================= */
/* 3. Styles Généraux (ajustements)        */
/* ======================================= */

.link-retour {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

    .link-retour:hover {
        color: #007bff;
    }

.bg-primary {
    background-color: #6c63ff !important;
}


input:-webkit-autofill ~ label {
    transform: translateY(-1rem) scale(0.8);
    color: blue;
}


/* Default label color (acts like placeholder) */
.form-outline .form-label {
    color: #0d6efd; /* blue */
}

/* When input is focused or has value */
.form-outline .form-control:focus ~ .form-label,
.form-outline .form-control:not(:placeholder-shown) ~ .form-label {
    color: #6c63ff; /* your theme blue */
}
