/* ============================================
   TitouService - Register / Login Styles
   ============================================ */

:root {
    /* Palette violette pale */
    --primary-light: #E8D4F8;
    --primary-medium: #D4B5F0;
    --primary-dark: #9B7ED8;
    --accent-purple: #9B7ED8;
    
    /* Tons neutres */
    --background-main: #FAFAF8;
    --text-dark: #3D3D47;
    --text-light: #6B6B7B;
    --text-muted: #A0A0B0;
    --border-light: #E8D4F8;
    --danger: #E85D5D;
    
    /* Polices */
    --font-family-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-family-heading: 'Didot', Georgia, serif;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family-main);
}

/* Body centré pour login/register */
body {
    display: flex;
    justify-content: center;  /* centre horizontalement */
    align-items: center;      /* centre verticalement */
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    margin: 0;
}

/* Container général */
.content {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

/* Messages flash */
.alert {
    background-color: #F0E8F8;
    color: #6B5B95;
    border-left: 6px solid var(--primary-dark);
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 5px;
}

/* Box du formulaire */
.little_post {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    width: 100%;
}

/* Titre */
.little_post h2 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-dark);
}

/* Labels */
.little_post label {
    font-weight: 600;
    color: var(--text-dark);
}

/* Inputs */
.little_post .input {
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.little_post .input:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 5px rgba(155, 126, 216, 0.5);
    outline: none;
}

/* Paragraphes et liens */
.little_post p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 10px;
}

.little_post a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: bold;
}

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

/* Bouton submit */
.little_post .button {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background-color: var(--primary-dark);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.little_post .button:hover {
    background-color: #7A5DB0;
}

/* Responsive mobile */
@media (max-width: 480px) {
    .content {
        padding: 10px;
    }

    .little_post {
        padding: 20px;
    }
}


/* =====================================
   Two-authentificator
   ===================================== */

.code-inputs {
    display: flex;
    justify-content: center;
    gap: 12px; /* espace entre les cases */
    margin-bottom: 24px;
}

.code-inputs input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.6em;
    font-weight: 600;

    border-radius: 10px;
    border: 2px solid var(--border-light);
    outline: none;

    background: var(--background-main);
    color: var(--text-dark);

    transition: 
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.1s ease;
}

.code-inputs input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(128, 90, 213, 0.25);
    transform: scale(1.05);
}

.code-inputs input:not(:placeholder-shown) {
    border-color: var(--accent-purple);
}