@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
  --primary: #1a1f4b;
  --accent: #e8521a;
  --accent-gradient: linear-gradient(135deg, #e8521a 0%, #ff7e4d 100%);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --text-main: #1a1f4b;
  --text-muted: #64748b;
}

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

body {
  font-family: 'Outfit', sans-serif;
  /* Overlay plus sombre pour un effet plus "beau" et contrasté */
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)), url('../images/esma.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-main);
  overflow-x: hidden;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.logo-container {
  margin-bottom: 40px;
  animation: slideDown 1s ease-out;
}

.logo-esma {
  height: 80px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 60px 40px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  animation: fadeInOut 1.2s ease-out;
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px auto;
  box-shadow: 0 10px 20px rgba(232, 82, 26, 0.3);
  transform: rotate(-5deg);
}

.icon-wrapper svg {
  width: 36px;
  height: 36px;
  color: #ffffff;
}

h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 18px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.description {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 30px;
  line-height: 1.6;
}

.description strong {
  color: #1a1f4b;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  padding: 18px 35px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(232, 82, 26, 0.4);
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(232, 82, 26, 0.5);
  color: #ffffff;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.note {
  margin-top: 16px;
  font-size: 12px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.note svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  font-size: 13px;
  color: #6b7280;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #1a1f4b;
}

.footer-links svg {
  width: 14px;
  height: 14px;
}

.dot {
  color: #d1d5db;
}

.bottom-bar {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-bar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}

.bottom-bar .brand svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.bottom-bar .portal-btn {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.3s;
}

.bottom-bar .portal-btn:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-2px);
}

/* ── COPYRIGHT ── */
.copyright {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  padding: 15px;
  background: rgba(0, 0, 0, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
@keyframes fadeInOut {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── RESPONSIVE DESIGN ── */
@media (max-width: 768px) {
  .logo-esma {
    height: 60px;
  }

  .card {
    padding: 40px 25px;
    border-radius: 20px;
  }

  h1 {
    font-size: 26px;
  }

  .bottom-bar {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    text-align: center;
  }

  .bottom-bar .brand {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .main {
    padding: 20px 15px;
  }

  .card {
    padding: 35px 20px;
  }

  .btn {
    padding: 15px 20px;
    font-size: 15px;
  }
}