
* {
  box-sizing: border-box;
}


body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont;
  background: linear-gradient(135deg,#061a3a,#0b3570,#0e4a8a);
  color: #fff;
  overflow-x: hidden;

  display: flex;
  flex-direction: column; /* ✅ LA CLÉ */
  min-height: 100vh;
}

.main-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 80px;
  padding-bottom: 90px; /* 🔥 IMPORTANT : espace avant footer */
}

/* ================= CARD ================= */
.login-card {
  background: #0b1d2e;
  width: 90%;
  max-width: 420px;
  padding: 20px;
  border-radius: 22px;
  border: 2px solid rgba(56, 189, 248, 0.18);
  box-shadow: 0 25px 60px rgba(0,0,0,0.55);
  text-align: center;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { transform: translateY(15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}


@media (max-width: 480px) {
  .main-container {
    padding-top: 40px;
    padding-bottom: 10px;
  }

  .footer-main {
    padding: 50px 20px 20px;
  }


  }




/* ================= HEADER ================= */
.login-header h1 {
  margin: 10px 0 5px;
  font-size: 24px;
  color: #e2e8f0;
}

.subtitle {
  font-size: 12px;
  color: #94a3b8;
}



/* Logo */
.logo img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(15, 23, 42, 0.4);
  
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);

  transition: transform 1s ease;

}




/* ================= SECURITY TAG ================= */
.secure-tag {
  font-size: 12px;
  color: #00ff9d;
  margin: 18px 0 25px;
  letter-spacing: 1px;
}

/* ================= INPUTS ================= */
.input-group {
  position: relative;
  margin-bottom: 16px;
}

.input-group i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 14px;
}

.input-group input {
  width: 100%;
  padding: 14px 44px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  transition: 0.3s;
}

.input-group input:focus {
  border-color: #38bdf8;
  outline: none;
  box-shadow: 0 0 0 2px rgba(56,189,248,0.15);
}

.toggle-btn {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
}

/* ================= BUTTON ================= */
.btn-login {
  width: 100%;
  padding: 15px;
  margin-top: 10px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #0f172a;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(56,189,248,0.25);
}

/* ================= ERROR ================= */
.error-box {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom:12px;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* ================= LINKS ================= */
.login-links {
  margin-top: 20px;
}

.create-link {
  color: var(--accent-mint);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  transition: 0.3s;
}

.create-link:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(0, 255, 157, 0.4);
}

.divider {
  margin: 15px 0;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  position: relative;
}

.divider span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #0b1d2e; /* Doit matcher le fond solide du body/card */
  padding: 0 15px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}

.login-trust {
  margin-top: 10px;
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-trust i { color: var(--accent-blue); }


/* ================= RESPONSIVE ================= */
@media (max-width: 480px) {
  .login-card {
    padding: 28px;
    border-radius: 20px;
  }
}



/* ============================================================
   FOOTER PREMIUM DYNAMIQUE - MYPROBOT-X
   ============================================================ */

:root {
    --accent-mint: #00ffb2;
    --accent-blue: #00d4ff;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

.footer-main {
    padding: 5px 5% 40px;
    background: transparent; /* Utilise le dégradé de votre body */
    position: relative;
    overflow: hidden;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- TYPOGRAPHIE & TITRES --- */
.footer-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    text-align: center
}

/* Titre des colonnes secondaires */
.footer-col:not(.brand-info) .footer-title {
    font-size: 1.2rem;
    background: none;
    -webkit-text-fill-color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--accent-mint);
    display: inline-block;
    padding-bottom: 8px;
    margin-bottom: 30px;
}

/* --- PARAGRAPHE STYLE --- */
.footer-text {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 450px;
    animation: fadeInSlide 0.8s ease-out;
    letter-spacing: 0.8px;
    text-align: center
}

.footer-text strong {
    color: var(--accent-blue);
    font-weight: 600;
}

/* --- BADGES DYNAMIQUES --- */
.badges-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 35px;
}

.cert-badge-wrapper {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.cert-badge-wrapper:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--accent-mint);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cert-icon i {
    font-size: 1.4rem;
    color: var(--accent-mint);
}

.cert-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
}

/* --- CARTE SÉCURITÉ (Look Application) --- */
.compliance-box {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    border: 1px solid var(--glass-border);
    padding: 25px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.compliance-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.compliance-header i { color: var(--accent-mint); font-size: 1.2rem; }

.compliance-box ul { list-style: none; padding: 0; }

.compliance-box li {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: 0.3s;
}

.compliance-box li:hover { color: #fff; transform: translateX(5px); }

.compliance-box li i { color: var(--accent-mint); font-size: 0.8rem; }

/* --- LIENS RÉGLEMENTAIRES --- */
.footer-links-grid { list-style: none; padding: 0; }

.footer-links-grid li { margin-bottom: 15px; }

.footer-links-grid a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.footer-links-grid a i { 
    margin-right: 12px; 
    font-size: 0.7rem; 
    color: var(--accent-blue);
    opacity: 0.5;
}

.footer-links-grid a:hover {
    color: #fff;
    padding-left: 8px;
}

/* --- RÉSEAUX SOCIAUX --- */
.social-icons-wrapper {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.4s;
}

.social-icon:hover {
    background: var(--accent-blue);
    border-color: transparent;
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}


/* ============================================================
   SECTION BASSE : COPYRIGHT & DISCLAIMER LÉGAL
   ============================================================ */

.footer-bottom {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08); /* Ligne de séparation fine */
    text-align: center;
}

.bottom-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- COPYRIGHT --- */
.footer-copy {
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.footer-copy strong {
    color: var(--accent-blue); /* Rappel de la couleur de marque */
    font-weight: 700;
}

/* --- NOTE DE RISQUE (DISCLAIMER) --- */
.footer-note {
    font-size: 0.85rem; /* Plus petit car c'est de l'information réglementaire */
    color: #718096; /* Gris neutre pour ne pas distraire l'œil */
    line-height: 1.8;
    background: rgba(0, 0, 0, 0.2); /* Léger fond pour l'isoler */
    padding: 20px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.05); /* Effet "document officiel" */
    text-align: center;
    font-style: italic;
}

/* Style spécifique pour les retours à la ligne <br> */
.footer-note br {
    display: block;
    margin-bottom: 8px;
    content: "";
    
}

/* --- EFFET HOVER SUR LE DISCLAIMER --- */
.footer-note:hover {
    color: #a0aec0;
    border-color: rgba(0, 136, 255, 0.2);
    transition: all 0.3s ease;
}

/* Adaptation Mobile */
@media (max-width: 768px) {
    .footer-note {
        font-size: 0.72rem;
        padding: 15px;
        text-align: justify; /* Meilleure lecture sur petit écran */
    }
}






/* --- BARRE DE STATUT ANIMÉE --- */
.footer-trust-bar {
    display: flex;
    justify-content: space-around;
    padding: 30px;
    margin: 60px 0;
    background: var(--glass-bg);
    border-radius: 100px; /* Style pilule */
    border: 1px solid var(--glass-border);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #fff;
}

.status-pulse {
    width: 10px;
    height: 10px;
    background: var(--accent-mint);
    border-radius: 50%;
    position: relative;
}

.status-pulse::after {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    background: var(--accent-mint);
    border-radius: 50%;
    animation: ripple 1.5s infinite;
}

/* --- ANIMATIONS --- */
@keyframes ripple {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(3); opacity: 0; }
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .footer-container { grid-template-columns: 1fr; }
    .footer-trust-bar { flex-direction: column; gap: 20px; border-radius: 20px; }
}


.method-grid-horizontal {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.btn-method-square {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(56, 189, 248, 0.2);
    width: 70px;
    height: 70px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-method-square:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: #38bdf8;
    transform: translateY(-3px);
}

.btn-method-square i { font-size: 1.4rem; color: #38bdf8; }
.btn-method-square span { font-size: 10px; color: #fff; font-weight: 700; }

.btn-back {
    margin-top: 20px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 12px;
    cursor: pointer;
}


.method-selector .divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08); /* Ligne très fine */
    margin: 30px 0 20px; /* Plus d'espace au dessus pour aérer */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.method-selector .divider span {
    position: absolute;
    background: #0b1d2e; /* Doit être identique au fond de ta carte */
    padding: 0 15px;
    font-size: 10px;
    font-weight: 800;
    color: #64748b; /* Couleur gris bleuté discret */
    letter-spacing: 1.5px; /* Espacement pro des lettres */
    text-transform: uppercase;
}

/* Optionnel : Une légère lueur sous les boutons pour les faire ressortir */
.method-grid-horizontal {
    padding-top: 5px;
}

