:root {
  --primary-color: #10b981;
  --primary-light: #34d399;
  --primary-dark: #059669;
  --secondary-color: #0ea5e9;
  --accent-color: #8b5cf6;
  --light-color: #ffffff;
  --dark-color: #0f172a;
  --gray-light: #f8fafc;
  --gray-medium: #e2e8f0;
  --gray-dark: #64748b;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --border-radius: 24px;
  --border-radius-sm: 16px;
  --box-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Outfit", "Inter", -apple-system, sans-serif;
}

body {
  background-color: #f1f5f9;
  color: var(--dark-color);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Animated Orbs */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  animation: float-bg 20s infinite ease-in-out;
  opacity: 0.6;
}
.orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(52, 211, 153, 0.4);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}
.orb-2 {
  width: 600px;
  height: 600px;
  background: rgba(139, 92, 246, 0.3);
  bottom: -150px;
  right: -100px;
  animation-delay: -5s;
}
.orb-3 {
  width: 400px;
  height: 400px;
  background: rgba(14, 165, 233, 0.3);
  top: 40%;
  left: 30%;
  animation-delay: -10s;
}

@keyframes float-bg {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -70px) scale(1.1); }
  66% { transform: translate(-40px, 50px) scale(0.9); }
}

.text-accent { color: var(--primary-color); font-weight: 800; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.login-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* --- Section Illustration (Gauche) --- */
.illustration-section {
  flex: 1.3;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

/* Décorations de fond */
/* Removed redundant before-element */

.illustration-content {
  max-width: 550px;
  text-align: center;
  z-index: 2;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 60px 40px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.illustration-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 5px;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.illustration-slogan {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.illustration-subtitle {
  font-size: 1.15rem;
  color: var(--gray-dark);
  margin-bottom: 40px;
  font-weight: 500;
}

.bot-illustration {
  font-size: 7rem;
  color: var(--primary-color);
  margin-bottom: 40px;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 15px 25px rgba(16, 185, 129, 0.3));
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.floating-cards {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  color: var(--dark-color);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.card:hover { 
  transform: translateY(-5px) scale(1.02); 
  box-shadow: 0 15px 25px rgba(16, 185, 129, 0.15);
  border-color: var(--primary-color);
}
.card i { color: var(--primary-color); font-size: 1.2rem; }

/* --- Section Formulaire (Droite) --- */
.form-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  padding: 40px;
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.05);
}

.form-card {
  width: 100%;
  max-width: 420px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.logo-text { font-size: 1.5rem; font-weight: 700; }

.form-header { margin-bottom: 30px; }
.form-header h2 { font-size: 1.8rem; font-weight: 700; color: var(--dark-color); margin-bottom: 8px; }
.form-header p { color: var(--gray-dark); font-size: 0.95rem; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 8px; color: var(--dark-color); }

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 14px;
  color: var(--gray-dark);
  font-size: 1.1rem;
}

.form-control {
  width: 100%;
  padding: 14px 16px 14px 44px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(10, 92, 54, 0.1);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  font-size: 0.9rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-dark);
  cursor: pointer;
}

.remember-me input {
  accent-color: var(--primary-color);
  width: 16px;
  height: 16px;
}

.forgot-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}
.forgot-link:hover { text-decoration: underline; }

.btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(16, 185, 129, 0.3);
}

.alert {
  margin-top: 15px;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-footer {
  margin-top: 40px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--gray-dark);
}

.form-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}
.form-footer a:hover { text-decoration: underline; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .illustration-section { display: none; }
}

@media (max-width: 480px) {
  .form-section { padding: 20px; }
  .form-header h2 { font-size: 1.5rem; }
}
/* Premium Integrated Academica Spain Badge - Sidebar Glossy Version */
@media (min-width: 993px) {
  .sidebar {
    display: flex !important;
    flex-direction: column !important;
    min-height: calc(100vh - 40px) !important;
    height: auto !important;
  }
}

.academica-sidebar-footer {
  margin-top: auto;
  padding: 15px 10px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.academica-badge {
  background: rgba(42, 86, 74, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 0 10px rgba(255, 255, 255, 0.1);
  text-decoration: none !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-width: fit-content;
}

/* The Glossy Shine Effect - Dynamic & Premium */
.academica-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: shine 5s infinite linear;
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 150%; }
  100% { left: 150%; }
}

.academica-badge:hover {
  transform: translateY(-2px) scale(1.03);
  background: rgba(42, 86, 74, 1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.academica-badge-text {
  font-size: 0.6rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.academica-badge-dot {
  width: 5px;
  height: 5px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px rgba(255, 255, 255, 1); }
  100% { transform: scale(1); opacity: 0.8; }
}

/* Hide in Mobile Bottom Nav context */
@media (max-width: 1024px) {
  .academica-sidebar-footer {
    display: none;
  }
}

/* --- UTILITY CLASSES FOR HTML CLEANUP --- */
.hidden { display: none !important; }
.flex { display: flex; }
.gap-3 { gap: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-2\.5 { margin-top: 10px; }
.flex-1 { flex: 1; }
.text-center { text-align: center; }
.text-lg { font-size: 1.125rem; }
.text-sm { font-size: 0.875rem; }
.text-2xl { font-size: 1.5rem; }
.text-gray-900 { color: #111827; }
.text-gray-500 { color: #6b7280; }
.text-green-600 { color: #16a34a; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.tracking-\[8px\] { letter-spacing: 8px; }
.h-\[60px\] { height: 60px; }
.ml-\[2px\] { margin-left: 2px; }
.items-start { align-items: flex-start; }
.gap-2\.5 { gap: 10px; }
.cursor-pointer { cursor: pointer; }
.text-\[0\.9rem\] { font-size: 0.9rem; }
.mt-1 { margin-top: 4px; }
.accent-green-600 { accent-color: #16a34a; }
.no-underline { text-decoration: none; }

/* ── Social Login Buttons ── */
.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
}
.btn-social:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
}
.btn-social:active { transform: translateY(0); }
.btn-social .bi-google { color: #ea4335; }
.btn-social .bi-apple { color: #1c1c1e; }

/* ── Divider ── */
.social-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9ca3af;
    font-size: 0.82rem;
}
.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

