/**
 * FEPRAFO — Pages connexion / inscription / mot de passe oublié
 *
 * v2 — Hero beige premium (cohérent avec Feuilles de route / FAQ /
 * Forum) : quadrillage, halos, kicker en pastille, ligne accent.
 *
 * Préfixes : .feprafo-login-page (container) / .fl-XXX (éléments)
 */

/* ================================================================== *
 *  CONTAINER GLOBAL
 * ================================================================== */
.feprafo-login-page {
    color: #1c1e21;
    font-size: 15px;
    line-height: 1.6;
}
.feprafo-login-page * {
    box-sizing: border-box;
}

/* ================================================================== *
 *  HERO — beige premium
 * ================================================================== */
.fl-hero {
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 80px 24px 130px;
    text-align: center;

    background: linear-gradient(160deg,
        #FDFCFA 0%,
        #F7F4ED 55%,
        #FAF7F2 100%);
}

/* Ligne accent gradient en haut */
.fl-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    z-index: 2;
    background: linear-gradient(90deg, transparent, #4A8BC2, #7CB342, transparent);
    pointer-events: none;
}

/* Quadrillage + halos */
.fl-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        radial-gradient(circle 560px at calc(100% + 120px) -160px, rgba(74,139,194,.11) 0%, transparent 62%),
        radial-gradient(circle 460px at -120px calc(100% + 140px), rgba(124,179,66,.10) 0%, transparent 60%),
        linear-gradient(rgba(44,95,141,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(44,95,141,.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 64px 64px, 64px 64px;
    pointer-events: none;
}

.fl-hero__inner {
    max-width: 620px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

/* Kicker pastille (remplace le texte blanc plein sur fond bleu) */
.fl-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid #B5D4F4;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    color: #2C5F8D;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin: 0 0 22px;
    box-shadow: 0 3px 12px rgba(74,139,194,.12);
}

.fl-hero__kicker::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7CB342;
    box-shadow: 0 0 0 4px rgba(124,179,66,.2);
    flex-shrink: 0;
}

.fl-hero__title {
    font-size: 40px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    margin: 0 0 12px !important;
    letter-spacing: -.03em !important;
    color: #1c1e21 !important;
}

.fl-hero__sub {
    font-size: 16px !important;
    color: #6b7280 !important;
    margin: 0 !important;
    opacity: 1;
}

/* ================================================================== *
 *  CARTE FORMULAIRE
 * ================================================================== */
.fl-main {
    max-width: 1100px;
    margin: -76px auto 90px;
    padding: 0 24px;
    position: relative;
    z-index: 4;
}

.fl-card {
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 22px;
    padding: 44px 40px;
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 24px 64px rgba(15,41,66,.12);
}
.fl-card--wide {
    max-width: 580px;
}

.fl-card__header {
    text-align: center;
    margin-bottom: 28px;
}
.fl-card__title {
    font-size: 25px !important;
    font-weight: 800 !important;
    color: #1c1e21 !important;
    margin: 0 0 8px !important;
    letter-spacing: -.015em !important;
}
.fl-card__sub {
    font-size: 14px !important;
    color: #6b7280 !important;
    margin: 0 !important;
}

/* ================================================================== *
 *  FORMULAIRE
 * ================================================================== */
.fl-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fl-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fl-field label {
    font-size: 13px;
    font-weight: 700;
    color: #1c1e21;
    letter-spacing: -0.005em;
}

.fl-field input[type="text"],
.fl-field input[type="email"],
.fl-field input[type="password"] {
    width: 100% !important;
    padding: 13px 16px !important;
    font-size: 15px !important;
    color: #1c1e21 !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    outline: none !important;
    transition: all .15s ease !important;
    font-family: inherit !important;
}
.fl-field input:focus {
    background: #ffffff !important;
    border-color: #2C5F8D !important;
    box-shadow: 0 0 0 4px rgba(74,139,194,.1) !important;
}

.fl-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.fl-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Row : checkbox + lien */
.fl-field--row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.fl-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #4b5563;
    font-weight: 500;
}
.fl-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: #2C5F8D;
    cursor: pointer;
}

.fl-link {
    font-size: 13px;
    color: #2C5F8D !important;
    font-weight: 600;
    text-decoration: none !important;
}
.fl-link:hover {
    text-decoration: underline !important;
}
.fl-link--center {
    display: block;
    text-align: center;
}

/* ================================================================== *
 *  BOUTONS
 * ================================================================== */
.fl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all .25s ease;
    font-family: inherit;
}
.fl-btn--full {
    width: 100%;
}

.fl-btn--primary {
    background: linear-gradient(135deg, #7CB342, #558b2f);
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(124,179,66,.35);
}
.fl-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(124,179,66,.45);
    color: #ffffff !important;
}

.fl-btn--secondary {
    background: #ffffff;
    color: #2C5F8D !important;
    border: 1.5px solid #B5D4F4;
}
.fl-btn--secondary:hover {
    border-color: #4A8BC2;
    background: #E6F1FB;
    color: #2C5F8D !important;
}

/* ================================================================== *
 *  ALERTES
 * ================================================================== */
.fl-alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 6px;
    border: 1px solid transparent;
}
.fl-alert--error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}
.fl-alert--success {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
    line-height: 1.5;
}

/* ================================================================== *
 *  DIVIDER + FOOTER
 * ================================================================== */
.fl-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
}
.fl-divider::before,
.fl-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #eef2f7;
}
.fl-divider span {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
}

.fl-footer {
    text-align: center;
}
.fl-footer p {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 12px;
}

.fl-legal {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    margin: 4px 0 0 !important;
    line-height: 1.5;
}

/* Déjà connecté */
.fl-already {
    max-width: 500px;
    margin: 80px auto;
    padding: 44px 40px;
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(15,41,66,.08);
}
.fl-already p {
    font-size: 16px;
    color: #4b5563;
    margin: 0 0 20px;
}

/* ================================================================== *
 *  RESPONSIVE
 * ================================================================== */
@media (max-width: 600px) {
    .fl-hero {
        padding: 60px 20px 100px;
    }
    .fl-hero__title {
        font-size: 30px !important;
    }
    .fl-card {
        padding: 32px 24px;
    }
    .fl-grid2 {
        grid-template-columns: 1fr;
    }
    .fl-field--row {
        flex-direction: column;
        align-items: stretch;
    }
}