/* Importation d'une police élégante */
@import url('https://fonts.googleapis.com');

:root {
    --accent-color: #123fb9;
    --accent-hover: #eeeef3;
    --text-main: #1f2937;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    /* background:rgb(240, 239, 238); */
    background-image: url(./image/code/blu.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-clip: initial;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.signup-container {
    /* background: rgba(255, 255, 255, 0.95); */
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 420px;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
}
.signup-container  img{
     font-size: 12px;
    position: relative;
    padding: 1px;
    border-radius:50%;
    
    width: 70px;
    height: 70px;
    top: 10px;
    right: -4px;
   box-shadow: 0 4px 8px rgba(42, 161, 38, 0.2); 
}
h2 {
    color: rgb(238, 149, 15);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

/* On utilise Flexbox pour espacer proprement les éléments sans <br> */
#loginForm {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espacement parfait entre les champs */
    margin-top: 25px;
}

input {
    width: 100%;
    height: 55px; /* Hauteur idéale pour le tactile */
    padding: 0 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px; /* Empêche le zoom auto sur iPhone */
    color: var(--text-main);
    transition: all 0.3s ease;
    background: #f9fafb;
}

input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

button {
    height: 55px;
     background:rgb(223, 183, 98);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

button:active {
    transform: translateY(0);
}

p {
    margin-top: 25px;
    color: #F58220;
    font-size: 15px;
}

a {
    color:#1CABE2;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

a:hover {
    text-decoration: none;
   color: #ffffff;
}

/* Gestion du message d'erreur/succès */
#message {
    font-size: 14px;
    min-height: 20px;
    color: #ef4444;
}

/* --- Adaptabilité Mobile --- */
@media (max-width: 480px) {
    .signup-container {
        padding: 30px 20px;
        border-radius: 20px;
    }

    h2 {
        font-size: 1.2rem;
    }

    input, button {
        height: 50px; /* Légèrement plus petit sur petit écran */
    }
}
