/* Path: /public/assets/css/pages/login.css */
/* ── HERO BANNER ── */
.login-hero {
  width: 100%;
  background: #fff;
  padding: 36px 5% 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
  overflow: hidden;
  min-height: 160px;
}

.hero-deco {
  position: absolute;
  pointer-events: none;
  font-size: 48px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .12));
  animation: float 4s ease-in-out infinite;
  user-select: none;
}

.hero-deco.hd1 {
  top: 10px;
  left: 8%;
  font-size: 52px;
  animation-delay: 0s;
}

.hero-deco.hd2 {
  top: 20px;
  left: 18%;
  font-size: 36px;
  animation-delay: .6s;
}

.hero-deco.hd3 {
  top: 8px;
  right: 20%;
  font-size: 44px;
  animation-delay: .3s;
}

.hero-deco.hd4 {
  top: 30px;
  right: 10%;
  font-size: 38px;
  animation-delay: .9s;
}

.hero-deco.hd5 {
  bottom: 10px;
  right: 5%;
  font-size: 34px;
  animation-delay: 1.2s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }

  50% {
    transform: translateY(-10px) rotate(3deg);
  }
}

.hero-arrows {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 14px;
  flex-shrink: 0;
}

.hero-arrows span {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  display: block;
}

.hero-arrows span:nth-child(1) {
  border-color: transparent transparent transparent var(--pink);
}

.hero-arrows span:nth-child(2) {
  border-color: transparent transparent transparent var(--cyan);
  opacity: .6;
}

.hero-arrows span:nth-child(3) {
  border-color: transparent transparent transparent var(--pink);
}

.hero-title {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(42px, 7vw, 72px);
  color: var(--blue);
  line-height: 1.1;
  position: relative;
  z-index: 2;
}

/* ── LOGIN SECTION ── */
.login-wrap {
  max-width: 920px;
  margin: 50px auto 80px;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 30px;
  position: relative;
  z-index: 5;
}

/* Shared card style */
.auth-card {
  width: 100%;
  max-width: 760px;
  background: #fff;
  border-radius: 16px;
  border: 2px solid var(--border);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.auth-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 174, 239, .2);
  border-color: var(--cyan);
}

.auth-card-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-card-header .header-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.auth-card-header .header-icon.cyan-icon {
  background: linear-gradient(135deg, var(--cyan), #0089c7);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 174, 239, .3);
}

.auth-card-header .header-icon.pink-icon {
  background: linear-gradient(135deg, var(--pink), #c41f6e);
  color: #fff;
  box-shadow: 0 4px 14px rgba(231, 40, 130, .3);
}

.auth-card-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.auth-card-header p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

.auth-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Form elements */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group label i {
  color: var(--cyan);
  font-size: 13px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--gray);
  transition: border-color .2s, box-shadow .2s, background .2s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--cyan);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(35, 165, 222, .12);
}

.form-group input::placeholder {
  color: #b0b8c4;
  font-size: 13.5px;
}

/* Password wrapper */
.input-pass-wrap {
  position: relative;
}

.input-pass-wrap input {
  padding-right: 46px;
}

.toggle-pass {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  transition: color .2s;
}

.toggle-pass:hover {
  color: var(--cyan);
}

/* Forgot password & extras */
.form-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.form-extras label {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 400;
}

.form-extras input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--cyan);
  cursor: pointer;
}

.forgot-link {
  color: var(--cyan);
  font-weight: 500;
  font-size: 13px;
  transition: color .2s;
}

.forgot-link:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* Buttons */
.btn-primary {
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--cyan), #0089c7);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(0, 174, 239, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 174, 239, .35);
}

.btn-pink {
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--pink), #c41f6e);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(231, 40, 130, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

.btn-pink:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(231, 40, 130, .35);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Social login */
.social-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-social {
  padding: 11px 20px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}

.btn-social:hover {
  border-color: var(--cyan);
  background: rgba(0, 174, 239, .04);
  box-shadow: 0 3px 10px rgba(0, 174, 239, .1);
}

.btn-social .social-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.btn-social .social-icon.google {
  background: #fff;
  border: 1px solid #ddd;
}

.btn-social .social-icon.facebook {
  background: #1877f2;
  color: #fff;
}

/* Badge tag (like catalogue-badge) */
.auth-badge {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--yellow), #f4d830);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  border-radius: 50px;
  align-self: flex-start;
  box-shadow: 0 4px 12px rgba(239, 230, 48, .3);
  margin-bottom: 4px;
}

/* Bottom note */
.auth-note {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

.auth-note a {
  color: var(--cyan);
  font-weight: 500;
}

.auth-note a:hover {
  text-decoration: underline;
}

/* ── RESPONSIVE ── */
@media (max-width: 968px) {
  .login-wrap {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 38px;
  }

  .hero-arrows {
    display: none;
  }
}

@media (max-width: 480px) {
  .auth-card-body {
    padding: 24px;
  }

  .auth-card-header {
    padding: 20px 24px 16px;
  }
}



/* ── TABS ── */
.login-wrap {
  max-width: 580px;
  margin: 50px auto 80px;
  padding: 0 5%;
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 16px 20px;
  background: none;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s, border-bottom .2s;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-tab.active {
  color: var(--cyan);
  border-bottom: 3px solid var(--cyan);
}

.auth-tab:hover {
  color: var(--cyan);
}

/* ── PANELS ── */
.auth-panel {
  animation: fadeIn .3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

/* ── FORM ROW (side by side) ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ── SWITCH LINK ── */
.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.auth-switch a {
  color: var(--cyan);
  font-weight: 600;
  margin-left: 4px;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* ── MESSAGES ── */
.error-message {
  padding: 10px 14px;
  background: #fff0f3;
  border: 1px solid #ffb3c1;
  border-radius: 8px;
  color: #c0392b;
  font-size: 13px;
}

.success-message {
  padding: 10px 14px;
  background: #f0fff4;
  border: 1px solid #b3ffcc;
  border-radius: 8px;
  color: #27ae60;
  font-size: 13px;
}

/* ── NAV USER MENU ── */
.nav-user-menu {
  position: relative;
}

.nav-user-name {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--cyan);
  transition: background .2s;
}

.nav-user-name:hover {
  background: rgba(0, 174, 239, .08);
}

.nav-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .1);
  min-width: 180px;
  z-index: 100;
  overflow: hidden;
}

.nav-user-dropdown.open {
  display: block;
  animation: fadeIn .2s ease;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--text);
  transition: background .2s;
}

.dropdown-item:hover {
  background: rgba(0, 174, 239, .06);
  color: var(--cyan);
}

.dropdown-item i {
  width: 16px;
  color: var(--cyan);
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}




/* ── AUTH TABS PREMIUM ── */
.auth-tabs {
  display: flex;
  background: var(--gray);
  /* Utilise votre variable existante */
  padding: 6px;
  border-radius: 14px;
  margin-bottom: 24px;
  border: 1.5px solid var(--border);
  position: relative;
}

.auth-tab {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.auth-tab i {
  font-size: 16px;
  transition: transform 0.3s;
}

/* État Actif (Se connecter / Créer un compte) */
.auth-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), #0089c7);
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.25);
}

.auth-tab.active i {
  transform: scale(1.1);
}

/* État Survol (pour l'onglet non-actif) */
.auth-tab:not(.active):hover {
  color: var(--cyan);
  background: rgba(0, 174, 239, 0.05);
}

/* Petit effet de pression au clic */
.auth-tab:active {
  transform: scale(0.97);
}

/* Responsive pour mobile */
@media (max-width: 480px) {
  .auth-tab {
    padding: 10px 12px;
    font-size: 13px;
  }

  .auth-tab i {
    font-size: 14px;
  }
}

/* ── SUPPORT & INFORMATIONS (GUESTS) ── */
.login-support {
  width: 100%;
  max-width: 760px;
  margin-top: 10px;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,.02);
}

.login-support h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-support h4 i {
  color: var(--cyan);
}

.login-support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.login-support-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s;
}

.login-support-links a:hover {
  background: #fff;
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .login-support {
    padding: 20px 16px;
  }
  
  .login-support-links {
    flex-direction: column;
    gap: 10px;
  }
  
  .login-support-links a {
    width: 100%;
    justify-content: center;
  }
}