@font-face {
    font-family: 'Plume W Ad';
    src: url(../font/Plume_W_Ad.woff) format('woff');
    font-weight: normal;
    font-style: normal;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    background: hsl(240, 100%, 96%);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    padding-top: 5vh;
    line-height: 1.5;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: #ffffff;
    border: solid #C9C9FF/50 1.5px;
    border-radius: 8px;
    padding: 48px 40px 36px;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.login-card:hover {
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.12),
        0 12px 28px rgba(0, 0, 0, 0.15);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header img {
    width: 70%;
    margin-bottom: 1rem;
}

.login-header h2 {
    color: #212121;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: 0.15px;
}

.login-header p {
    font-family: 'Plume W Ad', 'Montserrat', sans-serif;
    color: hsl(240, 100%, 61%);
    font-size: smaller;
}

/* Material Form Groups */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    background: transparent;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    border-radius: 0;
    padding: 16px 0 8px;
    color: #212121;
    font-size: 16px;
    font-weight: 400;
    transition: border-bottom-color 0.2s ease;
    width: 100%;
    outline: none;
    position: relative;
    z-index: 1;
}

.input-wrapper input:focus {
    border-bottom-color: hsl(240, 100%, 61%);
}

.input-wrapper label {
    position: absolute;
    left: 0;
    top: 16px;
    color: #757575;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.2s ease;
    pointer-events: none;
    transform-origin: left top;
}

.input-wrapper input:focus+label,
.input-wrapper input:valid+label {
    transform: translateY(-24px) scale(0.75);
    color: hsl(240, 100%, 61%);
    font-weight: 500;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: hsl(240, 100%, 61%);
    transition: width 0.3s ease;
    z-index: 2;
}

.input-wrapper input:focus~.input-line {
    width: 100%;
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 56px;
}

.password-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #757575;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.password-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
    color: hsl(240, 100%, 61%);
}

/* Form Options */
.form-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 16px;
}

/* --- CHECKBOX STYLE RESTAURÉ (votre version originale avec .checkbox-material) --- */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    color: #424242;
    font-size: 14px;
    font-weight: 400;
}

.checkbox-material {
    position: relative;
    width: 18px;
    height: 18px;
    border: 2px solid #757575;
    border-radius: 2px;
    transition: all 0.2s ease;
    overflow: hidden;
    flex-shrink: 0;
}

.checkbox-wrapper input[type="checkbox"]:checked+.checkbox-label .checkbox-material {
    background: hsl(240, 100%, 61%);
    border-color: hsl(240, 100%, 61%);
}

.checkbox-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    fill: white;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked+.checkbox-label .checkbox-icon {
    opacity: 1;
}

.checkbox-path {
    stroke-dasharray: 16;
    stroke-dashoffset: 16;
    transition: stroke-dashoffset 0.3s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked+.checkbox-label .checkbox-path {
    stroke-dashoffset: 0;
}

.forgot-password {
    color: hsl(240, 100%, 61%);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    letter-spacing: 0.25px;
}

/* Material Button */
.material-btn {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    background: hsl(240, 100%, 61%);
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    color: white;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    margin-bottom: 24px;
    letter-spacing: 0.25px;
    overflow: hidden;
    display: block;
}

.material-btn:hover {
    background: hsl(41, 91%, 61%);
    transform: translateY(-1px);
}

.material-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.material-btn:disabled {
    background-color: #cccccc;
    opacity: 0.7;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Divider */
.divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    background: #ffffff;
    color: #757575;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* Signup Link */
.signup-link {
    text-align: center;
    font-size: small;
}

.signup-link p {
    color: #757575;
    font-size: 14px;
    font-weight: 400;
}

.create-account {
    color: hsl(240, 100%, 61%);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

/* NOUVEAU : Style pour le texte légal */
.form-footer-info {
    margin-top: 32px;
    /* Espace au-dessus */
    text-align: center;
}

.form-footer-info p {
    font-size: 12px;
    /* Police plus petite */
    color: #6c757d;
    /* Couleur grise et discrète */
    line-height: 1.6;
}

.form-footer-info a {
    color: #4a4a4a;
    /* Couleur de lien un peu plus sombre */
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    body {
        padding: 0;
        background: #ffffff;
        display: block;
    }

    .login-card {
        padding: 48px 24px 24px;
        border: none;
        box-shadow: none;
        border-radius: 0;
        width: 100%;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 60px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .forgot-password {
        align-self: flex-end;
    }

    .login-header img {
        width: 60%;
    }

    .material-btn {
        width: 100%;
    }
}

#kc-social-providers {
    margin-top: 24px;
    /* Espace après le séparateur "OU" */
    width: 100%;
}

#kc-social-providers ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Espace entre chaque bouton social */
}

/* Style de chaque bouton (le lien <a>) */
#kc-social-providers a {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centre le contenu (icône + texte) */
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    /* Bordure discrète */
    border-radius: 4px;
    /* Bords légèrement arrondis, cohérent avec le design */
    text-decoration: none;
    color: #424242;
    /* Couleur de texte sobre */
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Effet au survol */
#kc-social-providers a:hover {
    background-color: #f5f5f5;
    /* Léger fond gris */
    border-color: #c9c9c9;
}

/* Style pour les icônes SVG */
#kc-social-providers a svg {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    /* Espace entre l'icône et le texte */
}

/* Cas spécifique pour l'icône Twitter qui est blanche à l'origine */
#kc-social-providers a svg.twitter path {
    fill: #1DA1F2;
    /* On lui donne la couleur bleue de Twitter */
}

/* Style pour le texte du bouton (le span) */
#kc-social-providers a span {
    line-height: 1;
    /* Assure un bon alignement vertical */
}

.form-title,
.form-message,
.msg {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.form-message {
    margin-top: 4rem;
    margin-bottom: 1rem;
    font-family: 'Plume W Ad';
    color: hsl(240, 100%, 61%);
}

.msg {
    margin-bottom: 1rem;
    text-align: center;
}
a {
    text-decoration: none;
}
.kc-input-error-message {
    color: #f44336; /* red */
    font-size: 0.8rem;
    margin-top: -20px;
    margin-bottom: 1rem;
    display: block;
}

