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

  @keyframes floatOrb {
    0%,100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-18px) scale(1.04); }
  }
  @keyframes floatOrb2 {
    0%,100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(14px) scale(0.96); }
  }
  @keyframes scanEye {
    0%,100% { transform: scaleX(1); opacity:1; }
    40% { transform: scaleX(0.15); opacity:0.5; }
    50% { transform: scaleX(0.15); opacity:0.5; }
    60% { transform: scaleX(1); opacity:1; }
  }
  @keyframes fadeSlideUp {
    from { opacity:0; transform: translateY(22px); }
    to   { opacity:1; transform: translateY(0); }
  }
  @keyframes fadeSlideLeft {
    from { opacity:0; transform: translateX(30px); }
    to   { opacity:1; transform: translateX(0); }
  }
  @keyframes fadeSlideRight {
    from { opacity:0; transform: translateX(-30px); }
    to   { opacity:1; transform: translateX(0); }
  }
  @keyframes ripple {
    0%   { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(2.2); opacity: 0; }
  }
  @keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
  }
  @keyframes inputShake {
    0%,100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
  }

  body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
  }

  .wrapper {
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #071e34 0%, #0f3d5e 45%, #0a4a3a 100%);
    display: flex; 
    align-items: center; 
    justify-content: center;
    padding: 2rem 1rem;
    position: relative; 
    overflow: hidden;
    border-radius: 0;
  }

  .orb {
    position: absolute; border-radius: 50%;
    pointer-events: none;
  }
  .orb1 {
    width: 340px; height: 340px;
    background: radial-gradient(circle, rgba(26,82,118,0.35) 0%, transparent 70%);
    top: -120px; right: -80px;
    animation: floatOrb 7s ease-in-out infinite;
  }
  .orb2 {
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(14,102,85,0.3) 0%, transparent 70%);
    bottom: -80px; left: -60px;
    animation: floatOrb2 9s ease-in-out infinite;
  }
  .orb3 {
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(52,152,219,0.15) 0%, transparent 70%);
    top: 40%; left: 10%;
    animation: floatOrb 11s ease-in-out infinite reverse;
  }

  .ring {
    position: absolute; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.05);
    pointer-events: none;
  }
  .ring1 { width: 500px; height: 500px; top: -200px; right: -200px; animation: rotateSlow 40s linear infinite; }
  .ring2 { width: 300px; height: 300px; bottom: -100px; left: -100px; animation: rotateSlow 30s linear infinite reverse; }

  .card {
    background: rgba(255,255,255,0.97);
    border-radius: 20px;
    display: flex;
    width: 100%; 
    max-width: 850px;
    height: 600px;
    overflow: hidden;
    position: relative; 
    z-index: 1;
    animation: fadeSlideUp 0.7s cubic-bezier(.22,.8,.4,1) both;
    margin: auto;
  }

  .panel {
    flex: 1; 
    padding: 2rem 2rem;
    display: flex; 
    flex-direction: column;
    min-width: 0;
    overflow-y: auto;
    height: 100%;
  }

  /* Masquer complètement la barre de défilement */
  .panel::-webkit-scrollbar {
    display: none;
  }
  .panel {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .brand {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 1.5rem;
    animation: fadeSlideRight 0.6s 0.3s both;
    flex-shrink: 0;
  }
  .brand-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, #1a5276, #0e6655);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
  }
  .brand-icon svg ellipse { animation: scanEye 4s ease-in-out infinite; transform-origin: center; }
  .brand-name { font-size: 18px; font-weight: 500; color: #0a2a4a; letter-spacing: 2px; }
  .brand-sub  { font-size: 10px; color: #999; letter-spacing: 1px; margin-top: 1px; }

  h2  { font-size: 22px; font-weight: 500; color: #0a2a4a; margin-bottom: 4px; animation: fadeSlideUp 0.5s 0.4s both; flex-shrink: 0; }
  .sub { font-size: 13px; color: #999; margin-bottom: 1.5rem; animation: fadeSlideUp 0.5s 0.5s both; flex-shrink: 0; }

  .field {
    position: relative;
    margin-bottom: 0.9rem;
    animation: fadeSlideRight 0.5s both;
    flex-shrink: 0;
  }
  .field:nth-child(1) { animation-delay: 0.5s; }
  .field:nth-child(2) { animation-delay: 0.6s; }
  .field:nth-child(3) { animation-delay: 0.65s; }
  .field:nth-child(4) { animation-delay: 0.7s; }
  .field:nth-child(5) { animation-delay: 0.75s; }
  .field:nth-child(6) { animation-delay: 0.8s; }
  .field:nth-child(7) { animation-delay: 0.85s; }

  .field input {
    width: 100%; height: 44px;
    border: 1.5px solid #e5e5e5;
    border-radius: 10px;
    padding: 0 14px 0 42px;
    font-size: 14px; color: #1a1a1a;
    background: #f8f9fb;
    outline: none;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s, transform 0.15s;
  }
  .field input:focus {
    border-color: #1a5276;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,82,118,0.1);
    transform: translateY(-1px);
  }
  .field input::placeholder { color: #c0c0c0; }
  .field input.shake { animation: inputShake 0.4s ease; }

  .field-icon {
    position: absolute; left: 13px; top: 50%;
    transform: translateY(-50%); color: #bbb;
    pointer-events: none;
    transition: color 0.25s;
  }
  .field:focus-within .field-icon { color: #1a5276; }

  .forgot { text-align: right; margin: -4px 0 1.2rem; animation: fadeSlideUp 0.5s 0.65s both; flex-shrink: 0; }
  .forgot a { font-size: 12px; color: #1a5276; text-decoration: none; transition: opacity 0.2s; }
  .forgot a:hover { opacity: 0.7; }

  .btn-primary {
    width: 100%; height: 46px;
    background: linear-gradient(135deg, #1a5276, #0e6655);
    background-size: 200% auto;
    color: #fff; border: none; border-radius: 10px;
    font-size: 15px; font-weight: 500; cursor: pointer;
    letter-spacing: 0.5px;
    transition: background-position 0.4s, transform 0.15s, box-shadow 0.2s;
    margin-bottom: 1.2rem;
    position: relative; overflow: hidden;
    animation: fadeSlideUp 0.5s 0.8s both;
    flex-shrink: 0;
  }
  .btn-primary:hover {
    background-position: right center;
    box-shadow: 0 6px 20px rgba(14,102,85,0.3);
    transform: translateY(-1px);
  }
  .btn-primary:active { transform: scale(0.98) translateY(0); }
  .btn-primary .ripple-el {
    position: absolute; border-radius: 50%;
    background: rgba(255,255,255,0.35);
    width: 10px; height: 10px;
    pointer-events: none;
    animation: ripple 0.5s linear;
  }

  .divider { display: flex; align-items: center; gap: 8px; margin-bottom: 1rem; animation: fadeSlideUp 0.5s 0.85s both; flex-shrink: 0; }
  .divider hr { flex: 1; border: none; border-top: 1px solid #eee; }
  .divider span { font-size: 12px; color: #ccc; white-space: nowrap; }

  .social-row { display: flex; justify-content: center; gap: 12px; animation: fadeSlideUp 0.5s 0.9s both; flex-shrink: 0; }
  .social-btn {
    width: 40px; height: 40px;
    border: 1.5px solid #e5e5e5; border-radius: 10px;
    background: #fff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; text-decoration: none;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  }
  .social-btn:hover {
    border-color: #1a5276;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(26,82,118,0.15);
  }

  .switch-link { text-align: center; font-size: 12px; color: #bbb; margin-top: 1rem; animation: fadeSlideUp 0.5s 0.95s both; flex-shrink: 0; }
  .switch-link a { color: #1a5276; cursor: pointer; text-decoration: none; font-weight: 500; transition: opacity 0.2s; }
  .switch-link a:hover { opacity: 0.7; }

  .sidebar {
    width: 200px;
    background: linear-gradient(160deg, #1a5276 0%, #0e6655 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 2rem 1.5rem; text-align: center;
    flex-shrink: 0; position: relative; overflow: hidden;
    animation: fadeSlideLeft 0.7s 0.2s both;
  }
  .sidebar::before {
    content: '';
    position: absolute;
    width: 180px; height: 180px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    top: -60px; right: -60px;
  }
  .sidebar::after {
    content: '';
    position: absolute;
    width: 120px; height: 120px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    bottom: -40px; left: -40px;
  }

  .sidebar-eye {
    width: 68px; height: 68px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    animation: fadeSlideUp 0.6s 0.5s both;
  }
  .sidebar-eye::after {
    content: '';
    position: absolute; inset: -5px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.2);
    animation: rotateSlow 8s linear infinite;
  }

  .sidebar h3 { font-size: 17px; font-weight: 500; color: #fff; margin-bottom: 8px; animation: fadeSlideUp 0.5s 0.6s both; }
  .sidebar p { font-size: 12px; color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 1.5rem; animation: fadeSlideUp 0.5s 0.65s both; }

  .btn-outline {
    border: 1.5px solid rgba(255,255,255,0.55);
    background: transparent; color: #fff;
    padding: 8px 20px; border-radius: 20px;
    font-size: 13px; cursor: pointer;
    transition: background 0.25s, transform 0.15s, border-color 0.25s;
    animation: fadeSlideUp 0.5s 0.7s both;
  }
  .btn-outline:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.9);
    transform: translateY(-1px);
  }

  .two-col { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 12px;
    margin-bottom: 0.9rem;
  }
  .two-col .field { 
    margin-bottom: 0;
  }
  
  /* Formulaire d'inscription avec scroll si nécessaire mais sans barre */
  #registerPanel form {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  /* Responsive */
  @media (max-width: 700px) {
    .card {
      flex-direction: column-reverse;
      max-width: 95%;
      height: auto;
      min-height: 560px;
    }
    
    .sidebar {
      width: 100%;
      flex-direction: row;
      justify-content: space-around;
      padding: 1rem;
      gap: 1rem;
    }
    
    .sidebar-eye {
      margin-bottom: 0;
    }
    
    .sidebar h3, .sidebar p {
      margin-bottom: 0;
    }
    
    .sidebar .btn-outline {
      margin-top: 0;
    }
    
    .panel {
      padding: 1.5rem;
    }
    
    .two-col {
      grid-template-columns: 1fr;
      gap: 0;
    }
    
    .two-col .field {
      margin-bottom: 0.9rem;
    }
  }

  @media (max-width: 550px) {
    .sidebar {
      flex-wrap: wrap;
      text-align: center;
      justify-content: center;
    }
    
    .panel {
      padding: 1.2rem;
    }
    
    .brand {
      margin-bottom: 1rem;
    }
    
    h2 {
      font-size: 18px;
    }
    
    .sub {
      font-size: 11px;
      margin-bottom: 1rem;
    }
  }

#loginPanel {
  justify-content: center;
}