﻿
@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);
}


.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: Bienvenue sur Capps) */
    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;
}

/* ======================================= */
/* 2. Animation et Conteneur d'Onde (Wave) */
/* ======================================= */

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

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

.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 */
.card_2 {
    z-index: 1;
    background-color: white;
    max-width: 450px;
    margin: 0 auto;
}

/* ======================================= */
/* 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;
}

.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;
}


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 */
}
