/*
 * Revinum — Agency Login Split Screen
 * Le panneau visuel est injecté via BODY_START (position: fixed à gauche)
 * Le formulaire Filament est poussé à droite via margin-left
 */

/* ── Panneau visuel : fixé à gauche ──────────────── */
.rv-login-visual {
    display: none;
    position: fixed; top: 0; left: 0; bottom: 0; width: 50%;
    overflow: hidden;
    background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 40%, #312e81 100%);
    z-index: 50;
    align-items: center; justify-content: center;
}
@media (min-width: 1024px) {
    .rv-login-visual { display: flex; }
}

.rv-login-visual .rv-grid {
    position: absolute; inset: 0; opacity: 0.04;
    background-image:
        linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
    background-size: 40px 40px;
}

.rv-login-visual .rv-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.3; animation: rv-float 8s ease-in-out infinite; }
.rv-login-visual .rv-orb-1 { width: 400px; height: 400px; background: #6366f1; top: -10%; right: -5%; }
.rv-login-visual .rv-orb-2 { width: 300px; height: 300px; background: #8b5cf6; bottom: 10%; left: -8%; animation-delay: -3s; }
.rv-login-visual .rv-orb-3 { width: 200px; height: 200px; background: #a78bfa; top: 50%; left: 40%; animation-delay: -5s; }

@keyframes rv-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.rv-vis-content { position: relative; z-index: 10; text-align: center; padding: 3rem; max-width: 28rem; }
.rv-vis-content h2 { font-size: 2.5rem; font-weight: 800; line-height: 1.1; margin: 0 0 1rem; background: linear-gradient(135deg, #fff, #c7d2fe); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.rv-vis-content p { color: rgba(255,255,255,.6); font-size: 1rem; line-height: 1.6; margin: 0; }

.rv-pills { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 2.5rem; }
.rv-pill { padding: .4rem 1rem; border-radius: 2rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.7); font-size: .8rem; font-weight: 500; backdrop-filter: blur(4px); }

/* ── Layout Filament : poussé à droite ───────────── */
.fi-simple-layout {
    background: #ffffff !important;
    min-height: 100vh !important;
    padding: 0 !important;
}
@media (min-width: 1024px) {
    .fi-simple-layout { margin-left: 50% !important; width: 50% !important; }
}

.fi-simple-main-ctn {
    width: 100% !important; max-width: 100% !important;
    padding: 2rem !important;
}

.fi-simple-main {
    max-width: 24rem !important;
    background: transparent !important;
    box-shadow: none !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    --tw-ring-color: transparent !important;
}

/* Logo Revinum */
.fi-simple-header { margin-bottom: 1.5rem !important; }
.fi-logo { display: none !important; }
.fi-simple-header::before {
    content: '';
    display: block;
    width: 140px;
    height: 112px;
    background-image: url('/images/logo/logo-stacked-dark.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    margin-bottom: 1.5rem;
}

/* Heading + tous les textes du formulaire en dark */
.fi-simple-layout *,
.fi-simple-main * {
    color: #0f172a !important;
}
.fi-simple-main h1 { font-size: 1.5rem !important; font-weight: 800 !important; }

/* Exceptions : lien "créer un compte" et astérisque required */
.fi-simple-main a { color: #6366f1 !important; }
.fi-simple-main [class*="required"]::after,
.fi-simple-main .fi-fo-field-wrp-required-indicator { color: #ef4444 !important; }

/* Bouton toujours blanc */
.fi-simple-main .fi-btn,
.fi-simple-main .fi-btn * { color: #ffffff !important; }

/* Champs de formulaire — meilleure visibilité */
.fi-simple-main .fi-input-wrp,
.fi-simple-main .fi-fo-field-wrp {
    margin-bottom: .75rem !important;
}
.fi-simple-main input[type="email"],
.fi-simple-main input[type="password"],
.fi-simple-main input[type="text"] {
    border: 1.5px solid #cbd5e1 !important;
    border-radius: .625rem !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    padding: .75rem 1rem !important;
    font-size: .9375rem !important;
    transition: border-color .2s, box-shadow .2s !important;
    width: 100% !important;
}
.fi-simple-main input[type="email"]:focus,
.fi-simple-main input[type="password"]:focus,
.fi-simple-main input[type="text"]:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,.15) !important;
    outline: none !important;
    background: #fff !important;
}
.fi-simple-main label {
    font-size: .875rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: .375rem !important;
    display: block !important;
}

/* Bouton gradient agency */
.fi-simple-main .fi-btn {
    background: linear-gradient(135deg, #4338ca, #6366f1) !important;
    box-shadow: 0 4px 15px rgba(67,56,202,.3) !important;
    border: none !important; border-radius: .75rem !important;
    font-weight: 700 !important; transition: all .2s ease !important;
}
.fi-simple-main .fi-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 25px rgba(67,56,202,.4) !important;
}
