/* ================================================================================================
// 	File Name: login-custom.css
// 	Description: Styles personnalisés pour la page de login Firavel 3.0
// 	----------------------------------------------------------------------------------------------
// 	Firavel 3.0 - Système de gestion des services financiers
// 	Version: 3.0
// ================================================================================================ */

/* Background animé moderne pour transferts monétaires */
body.bg-full-screen-image {
    background: linear-gradient(135deg, #142b24 0%, #1E3D34 30%, #2c5a4b 55%, #789a60 80%, #a9c295 100%) !important;
    background-size: 400% 400% !important;
    animation: gradientShift 15s ease infinite !important;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Animation du dégradé de fond */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Particules financières flottantes */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255,255,255,0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: floatingParticles 20s linear infinite;
    z-index: 1;
}

@keyframes floatingParticles {
    0% { transform: translateY(100vh) translateX(0px); }
    100% { transform: translateY(-100px) translateX(100px); }
}

/* Icônes financières animées */
body::after {
    content: '💊 🌿 ➕ 🩺 💚 🧴 🏥 🌱 💉 🫶';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 24px;
    opacity: 0.1;
    animation: financialIcons 30s linear infinite;
    z-index: 1;
    pointer-events: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    letter-spacing: 50px;
    line-height: 100px;
}

@keyframes financialIcons {
    0% { 
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.1;
    }
    90% {
        opacity: 0.1;
    }
    100% { 
        transform: translateY(-200px) rotate(360deg);
        opacity: 0;
    }
}

/* Lignes de connexion animées (réseau financier) */
.financial-network {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.financial-network::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 2px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2), transparent);
    animation: pulseNetwork 3s ease-in-out infinite;
}

.financial-network::after {
    content: '';
    position: absolute;
    top: 40%;
    right: 15%;
    width: 50%;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
    animation: pulseNetwork 4s ease-in-out infinite reverse;
}

@keyframes pulseNetwork {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.02); }
}

/* Ondulations financières */
.financial-waves {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.03));
    z-index: 1;
    pointer-events: none;
}

.financial-waves::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.05) 50px,
        transparent 100px
    );
    animation: waveFlow 15s linear infinite;
}

@keyframes waveFlow {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}

/* Flux de données financières */
.financial-data-flow {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.1;
}

.data-stream {
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, 
        rgba(132, 165, 108,0), 
        rgba(132, 165, 108,0.8), 
        rgba(132, 165, 108,0)
    );
    animation: dataFlow 3s linear infinite;
}

.data-stream:nth-child(1) { left: 20%; height: 100px; animation-delay: 0s; }
.data-stream:nth-child(2) { left: 40%; height: 150px; animation-delay: 0.5s; }
.data-stream:nth-child(3) { left: 60%; height: 120px; animation-delay: 1s; }
.data-stream:nth-child(4) { left: 80%; height: 180px; animation-delay: 1.5s; }

@keyframes dataFlow {
    0% { 
        transform: translateY(-100px);
        opacity: 0;
    }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { 
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Cercles de connexion monétaire */
.money-circles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.money-circle {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: expandCircle 8s ease-in-out infinite;
}

.money-circle:nth-child(1) {
    top: 20%;
    left: 15%;
    width: 50px;
    height: 50px;
    animation-delay: 0s;
}

.money-circle:nth-child(2) {
    top: 60%;
    right: 20%;
    width: 80px;
    height: 80px;
    animation-delay: 2s;
}

.money-circle:nth-child(3) {
    bottom: 30%;
    left: 30%;
    width: 60px;
    height: 60px;
    animation-delay: 4s;
}

@keyframes expandCircle {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(2);
        opacity: 0.3;
    }
}

/* Animation de devise flottante */
.floating-currency {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    font-size: 20px;
    opacity: 0.08;
}

.currency-symbol {
    position: absolute;
    animation: floatCurrency 15s linear infinite;
}

.currency-symbol:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.currency-symbol:nth-child(2) {
    left: 30%;
    animation-delay: 3s;
}

.currency-symbol:nth-child(3) {
    left: 50%;
    animation-delay: 6s;
}

.currency-symbol:nth-child(4) {
    left: 70%;
    animation-delay: 9s;
}

.currency-symbol:nth-child(5) {
    left: 90%;
    animation-delay: 12s;
}

@keyframes floatCurrency {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.08;
    }
    90% {
        opacity: 0.08;
    }
    100% {
        transform: translateY(-100px) rotate(180deg);
        opacity: 0;
    }
}

/* Lignes de transfer global */
.global-transfer-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.transfer-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    animation: transferPulse 5s ease-in-out infinite;
}

.transfer-line:nth-child(1) {
    top: 25%;
    left: 0;
    width: 60%;
    animation-delay: 0s;
}

.transfer-line:nth-child(2) {
    top: 50%;
    right: 0;
    width: 70%;
    animation-delay: 1.5s;
    animation-direction: reverse;
}

.transfer-line:nth-child(3) {
    bottom: 25%;
    left: 20%;
    width: 50%;
    animation-delay: 3s;
}

@keyframes transferPulse {
    0%, 100% {
        opacity: 0.1;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 0.4;
        transform: scaleX(1.2);
    }
}

/* Points de connexion financière */
.financial-nodes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.financial-node {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: nodePulse 4s ease-in-out infinite;
}

.financial-node:nth-child(1) { top: 20%; left: 15%; animation-delay: 0s; }
.financial-node:nth-child(2) { top: 30%; right: 25%; animation-delay: 0.5s; }
.financial-node:nth-child(3) { bottom: 40%; left: 20%; animation-delay: 1s; }
.financial-node:nth-child(4) { bottom: 20%; right: 30%; animation-delay: 1.5s; }
.financial-node:nth-child(5) { top: 60%; left: 50%; animation-delay: 2s; }

@keyframes nodePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }
}

/* Optimisations de performance */
* {
    box-sizing: border-box;
}

/* GPU Acceleration pour les animations critiques */
body::before,
body::after,
.financial-network,
.financial-waves,
.data-stream,
.money-circle,
.currency-symbol,
.transfer-line,
.financial-node {
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Réduction de la complexité sur mobile */
@media (max-width: 768px) {
    .financial-data-flow,
    .floating-currency,
    .global-transfer-lines {
        display: none;
    }
    
    .financial-network::before,
    .financial-network::after {
        animation-duration: 6s;
    }
    
    body::before {
        animation-duration: 30s;
    }
}

/* Mode de préférence pour réduire les mouvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01s !important;
    }
    
    .financial-network,
    .financial-waves,
    .financial-data-flow,
    .money-circles,
    .floating-currency,
    .global-transfer-lines,
    .financial-nodes {
        display: none;
    }
}

/* Animation de scintillement pour les transactions */
.transaction-sparkle {
    position: fixed;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Effet de parallaxe subtil */
.parallax-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.parallax-layer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    background: radial-gradient(
        circle at 20% 20%, 
        rgba(132, 165, 108,0.05) 0%, 
        transparent 50%
    ),
    radial-gradient(
        circle at 80% 80%, 
        rgba(30, 61, 52,0.05) 0%, 
        transparent 50%
    );
    animation: parallaxMove 20s ease-in-out infinite alternate;
}

@keyframes parallaxMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-20px, -20px) rotate(2deg); }
}

/* Amélioration de la carte de login */
.card.login-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.card.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.15) !important;
}

/* Animation du logo */
.logo-container {
    position: relative;
    display: inline-block;
}

.logo-container img {
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.logo-container:hover img {
    transform: scale(1.05) rotate(3deg);
}

/* Amélioration des champs de formulaire */
.form-control.round {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid transparent !important;
    border-radius: 15px !important;
    padding: 15px 20px 15px 50px !important;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.form-control.round:focus {
    background: rgba(255, 255, 255, 1) !important;
    border-color: #84A56C !important;
    box-shadow: 0 4px 20px rgba(132, 165, 108,0.2) !important;
    transform: translateY(-2px);
    outline: none !important;
}

.form-control.round::placeholder {
    color: #999 !important;
    font-weight: 400;
}

/* Icônes modernes */
.form-control-position i {
    color: #84A56C !important;
    font-size: 18px !important;
    transition: all 0.3s ease;
}

.form-control.round:focus + .form-control-position i {
    color: #789a60 !important;
    transform: scale(1.1);
}

/* Bouton de connexion moderne */
.btn-bg-gradient-x-purple-blue {
    background: linear-gradient(135deg, #84A56C 0%, #1E3D34 100%) !important;
    border: none !important;
    border-radius: 15px !important;
    padding: 15px 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(132, 165, 108,0.3) !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-bg-gradient-x-purple-blue:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(132, 165, 108,0.4) !important;
}

.btn-bg-gradient-x-purple-blue:active {
    transform: translateY(-1px) !important;
}

.btn-bg-gradient-x-purple-blue::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-bg-gradient-x-purple-blue:hover::before {
    left: 100%;
}

/* Liens stylisés */
.card-link {
    color: #84A56C !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.card-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #84A56C, #1E3D34);
    transition: width 0.3s ease;
}

.card-link:hover {
    color: #789a60 !important;
    text-decoration: none !important;
}

.card-link:hover::after {
    width: 100%;
}

/* Boutons sociaux modernes */
.btn-social-icon {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 10px !important;
    transition: all 0.3s ease;
    border: none !important;
    color: white !important;
    font-size: 20px !important;
}

.btn-facebook {
    background: linear-gradient(135deg, #3b5998, #2d4373) !important;
}

.btn-twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9) !important;
}

.btn-instagram {
    background: linear-gradient(135deg, #e4405f, #fd1d1d, #fcb045) !important;
}

.btn-social-icon:hover {
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

/* Animation de chargement */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(132, 165, 108,0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(132, 165, 108,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(132, 165, 108,0);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Titre stylisé */
.font-large-1 {
    background: linear-gradient(135deg, #84A56C, #1E3D34) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 700 !important;
    font-size: 24px !important;
    margin-bottom: 10px;
}

/* Message d'erreur stylisé */
.help-block {
    background: rgba(220, 53, 69, 0.1) !important;
    border: 1px solid rgba(220, 53, 69, 0.2) !important;
    color: #dc3545 !important;
    padding: 10px 15px !important;
    border-radius: 10px !important;
    margin-top: 10px !important;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Background amélioré */
body.bg-full-screen-image {
    background: linear-gradient(135deg, #84A56C 0%, #1E3D34 100%) !important;
}

.content-wrapper-before {
    background: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .card.login-card {
        margin: 20px !important;
        border-radius: 15px !important;
    }
    
    .form-control.round {
        padding: 12px 18px 12px 45px !important;
    }
}

/* Animation d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Amélioration globale de la carte */
.card.border-grey {
    border: none !important;
}

.card-header {
    background: transparent !important;
    border: none !important;
}