/* Reset pour éliminer tout espace en haut */
html.auth-page-html,
html.auth-page-html body {
  margin: 0 !important;
  padding: 0 !important;
}

/* Pages d'authentification (login et register) */
.auth-page {
  min-height: 100vh;
  background: var(--onparty-bg-dark);
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}

.auth-page.theme-light {
  background: var(--onparty-bg-light);
  color: #0f172a;
}

@media (max-width: 991.98px) {
  .auth-page {
    padding-top: 0;
  }

  .auth-page .auth-content {
    padding-top: calc(max(28vh, 220px) - 3rem);
  }
}

@media (max-width: 768px) {
  .auth-page {
    padding-top: 0;
  }

  .auth-page .auth-content {
    padding-top: calc(max(26vh, 200px) - 2.5rem);
  }
}

@media (max-width: 480px) {
  .auth-page {
    padding-top: 0;
  }

  .auth-page .auth-content {
    padding-top: calc(max(24vh, 180px) - 2rem);
  }
}

/* Bannière mobile avec image */
.auth-mobile-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 28vh;
  min-height: 220px;
  max-height: 280px;
  margin: 0;
  padding: 0;
  background-image: url('/images/login_banner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  z-index: 1;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1200,0 L1200,240 Q900,280 600,240 T0,240 Z' fill='white'/%3E%3C/svg%3E");
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  mask-position: top center;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1200,0 L1200,240 Q900,280 600,240 T0,240 Z' fill='white'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: top center;
}

.auth-mobile-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom,
    rgba(15, 23, 42, 0.2) 0%,
    rgba(15, 23, 42, 0.6) 60%,
    rgba(15, 23, 42, 0.85) 100%);
  z-index: 1;
  pointer-events: none;
}

.auth-mobile-banner::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  width: 100%;
  height: 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,40 Q300,0 600,40 T1200,40 L1200,120 L0,120 Z' fill='%230f172a'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: bottom center;
  z-index: 3;
  pointer-events: none;
}

body[data-theme="light"] .auth-mobile-banner::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,40 Q300,0 600,40 T1200,40 L1200,120 L0,120 Z' fill='%23f8fafc'/%3E%3C/svg%3E");
}

.auth-mobile-banner .auth-header-wrapper-mobile {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 1rem;
  margin-bottom: 0;
  gap: 0.5rem;
}

.auth-mobile-banner .auth-header {
  margin-top: 0;
}

.auth-mobile-banner .auth-header h1 {
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.9);
  margin-bottom: 0.3rem;
}

.auth-mobile-banner .auth-subtitle {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  font-weight: 500;
}

@media (max-width: 768px) {
  .auth-mobile-banner {
    height: 26vh;
    min-height: 200px;
  }

  .auth-mobile-banner .auth-header-wrapper-mobile {
    padding: 0 1rem 1rem;
  }

  .auth-mobile-banner::after {
    height: 60px;
  }
}

@media (max-width: 480px) {
  .auth-mobile-banner {
    height: 24vh;
    min-height: 180px;
  }

  .auth-mobile-banner .auth-header-wrapper-mobile {
    padding: 0 0.75rem 0.85rem;
  }

  .auth-mobile-banner .auth-header h1 {
    margin-bottom: 0.2rem;
  }

  .auth-mobile-banner::after {
    height: 50px;
  }
}

/* Thème light pour la bannière mobile */
.auth-page.theme-light .auth-mobile-banner::before {
  background: linear-gradient(to bottom,
    rgba(241, 245, 249, 0.3) 0%,
    rgba(241, 245, 249, 0.7) 70%,
    rgba(241, 245, 249, 0.9) 100%);
}

.auth-page.theme-light .auth-mobile-banner .auth-header h1 {
  color: #0f172a;
  text-shadow: 0 4px 12px rgba(255, 255, 255, 0.8);
}

.auth-page.theme-light .auth-mobile-banner .auth-subtitle {
  color: #475569;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
}

.auth-page > .app-scroll {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-content {
  width: 100%;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .auth-content {
    padding: 0 1rem;
  }

  .auth-content .row.g-4 {
    --bs-gutter-y: 1rem;
  }

  .auth-content .mb-4 {
    margin-bottom: 1rem !important;
  }

  .auth-content .mb-5 {
    margin-bottom: 1.5rem !important;
  }
}

@media (max-width: 576px) {
  .auth-content {
    padding: 0 0.75rem;
  }
}

@media (max-width: 480px) {
  .auth-content .row.g-4 {
    --bs-gutter-y: 0.75rem;
  }

  .auth-content .mb-4 {
    margin-bottom: 0.75rem !important;
  }

  .auth-content .mb-5 {
    margin-bottom: 1rem !important;
  }
}

.auth-header {
  text-align: center;
  color: rgba(248, 250, 252, 0.95);
}

.auth-header h1 {
  font-size: 10rem;
  margin-bottom: 1.5rem;
  background: none;
  -webkit-background-clip: initial;
  background-clip: border-box;
  color: rgba(248, 250, 252, 0.95);
  -webkit-text-fill-color: currentColor;
  text-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.auth-header .navbar-brand {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
  display: inline-flex;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.auth-header .navbar-brand:hover {
  opacity: 0.8;
}

.auth-header .navbar-brand h1 {
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.auth-header .onparty-badge {
  font-size: 3rem;
  padding: 0.45rem 1.30rem;
  box-shadow: 0 0 30px rgba(248, 113, 113, 0.9), 0 0 70px rgba(190, 24, 93, 0.65);
}

.auth-header .onparty-letter {
  font-size: 2.8rem;
}

.auth-header .onparty-brand-text {
  font-size: 2.4rem;
  letter-spacing: 0.22em;
}

.auth-header-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .auth-header-wrapper {
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .auth-header-wrapper {
    gap: 0.5rem;
  }
}

.language-switcher-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.85);
}

.language-switcher-inline a {
  color: rgba(226, 232, 240, 0.85);
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.3s;
}

.language-switcher-inline a.active {
  text-decoration: underline;
}

.language-switcher-inline a:hover {
  opacity: 0.8;
}

.language-switcher-mobile {
  display: none;
}

@media (max-width: 991.98px) {
  .language-switcher-desktop {
    display: none;
  }

  .language-switcher-mobile {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    /* margin: 2rem auto 0; */
    padding-bottom: 1rem;
  }
}

@media (min-width: 768px) {
  .auth-header-wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .auth-header {
    text-align: left;
  }
}

.auth-intro-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 28px;
  margin: 0 auto 2rem;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.45);
}

.auth-intro-card .card-body {
  padding: 2rem;
}

.auth-intro-text h3 {
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
  color: rgba(248, 250, 252, 0.95);
}

.auth-intro-text p {
  margin: 0;
  color: rgba(226, 232, 240, 0.85);
}

.auth-intro-feature {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  align-items: center;
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-intro-feature h4 {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(248, 250, 252, 0.95);
  text-align: center;
}

.auth-intro-feature p {
  margin: 0;
  color: rgba(203, 213, 225, 0.85);
  font-size: 0.95rem;
  width: 100%;
  text-align: center;
}

.auth-intro-feature .feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

body.theme-light .auth-intro-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15);
}

body.theme-light .auth-intro-text h3 {
  color: #0f172a;
}

body.theme-light .auth-intro-text p {
  color: #334155;
}

body.theme-light .auth-intro-feature {
  background: rgba(241, 245, 249, 0.85);
  border-color: rgba(148, 163, 184, 0.45);
}

body.theme-light .auth-intro-feature h4 {
  color: #0f172a;
}

body.theme-light .auth-intro-feature p {
  color: #475569;
}

@media (max-width: 768px) {
  .auth-header h1 {
    font-size: 6rem;  /* Taille globale du titre - MODIFIER ICI pour agrandir/réduire */
    margin-bottom: 0.75rem;
  }

  .auth-header .onparty-badge {
    font-size: 2.4rem;  /* Taille du badge "ON" - MODIFIER ICI */
    padding: 0.45rem 1.35rem;
  }

  .auth-header .onparty-letter {
    font-size: 2.25rem;  /* Taille de la lettre "O" dans le badge - MODIFIER ICI */
  }

  .auth-header .onparty-brand-text {
    font-size: 2rem;  /* Taille du texte "Party" - MODIFIER ICI */
    letter-spacing: 0.18em;
  }

  .auth-header {
    margin-top: 0;
  }

  .auth-header-wrapper {
    margin-bottom: 1.25rem;
  }

  .auth-intro-card {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .auth-intro-feature {
    padding: 0.5rem;
  }

  .auth-intro-feature h4 {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
  }

  .auth-intro-feature p {
    font-size: 0.8rem;
  }

  .auth-intro-feature .feature-icon {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.95rem;
  }
}

.auth-subtitle {
  font-size: 1.1rem;
  color: rgba(226, 232, 240, 0.85);
  text-shadow: 0 10px 30px rgba(5, 8, 23, 0.85);
}

@media (max-width: 768px) {
  .auth-subtitle {
    font-size: 0.85rem;
    margin-bottom: 0;
  }
}

/* Bouton switcher mobile */
.auth-card-switcher {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0;
}

.btn-switcher {
  background: rgba(236, 72, 153, 0.15);
  border: 2px solid rgba(236, 72, 153, 0.4);
  color: rgba(236, 72, 153, 0.95);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  width: 100%;
}

.btn-switcher:hover {
  background: rgba(236, 72, 153, 0.25);
  border-color: rgba(236, 72, 153, 0.6);
  color: #ec4899;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
}

@media (max-width: 768px) {
  .auth-card-switcher {
    margin-top: 0.75rem;
  }

  .btn-switcher {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .auth-card-switcher {
    margin-top: 0.6rem;
  }

  .btn-switcher {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}

/* Comportement carrousel mobile */
@media (max-width: 991.98px) {
  .auth-card-wrapper#guestCard {
    display: none;
  }

  .auth-card-wrapper {
    margin-top: 1.5rem;
  }

  /* Animation carrousel */
  .auth-card-wrapper {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  }

  .auth-card-wrapper.slide-out-left {
    animation: slideOutLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  .auth-card-wrapper.slide-out-right {
    animation: slideOutRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  .auth-card-wrapper.slide-in-left {
    animation: slideInLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  .auth-card-wrapper.slide-in-right {
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  @keyframes slideOutLeft {
    from {
      transform: translateX(0);
      opacity: 1;
    }
    to {
      transform: translateX(-100%);
      opacity: 0;
    }
  }

  @keyframes slideOutRight {
    from {
      transform: translateX(0);
      opacity: 1;
    }
    to {
      transform: translateX(100%);
      opacity: 0;
    }
  }

  @keyframes slideInLeft {
    from {
      transform: translateX(-100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  @keyframes slideInRight {
    from {
      transform: translateX(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
}

@media (max-width: 768px) {
  .auth-card-wrapper {
    margin-top: 1.25rem;
  }
}

@media (max-width: 480px) {
  .auth-card-wrapper {
    margin-top: 1rem;
  }
}

/* cards */
.auth-card,
.auth-card-guest {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(3, 7, 18, 0.65);
}

.auth-card h2 {
  color: rgba(248, 250, 252, 0.95);
  margin: 0 0 1rem 0;
  font-size: 1.8rem;
  text-align: center;
  text-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
  .auth-card h2 {
    font-size: 1.4rem;
    margin: 0 0 0.5rem 0;
  }
}

/* Padding des cards */
.auth-card .card-body,
.auth-card-guest .card-body {
  padding: 1.5rem;
}

@media (max-width: 768px) {
  .auth-card .card-body,
  .auth-card-guest .card-body {
    padding: 1rem;
  }
}

.auth-card-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  min-height: auto;
  justify-content: flex-start;
}

@media (max-width: 575.98px) {
  .auth-card-head {
    min-height: auto;
  }
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

@media (max-width: 768px) {
  .auth-form {
    gap: 0.75rem;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .form-group {
    gap: 0.35rem;
  }
}

.form-group label {
  font-weight: 600;
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .form-group label {
    font-size: 0.85rem;
  }
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s;
  font-family: inherit;
  background: rgba(15, 23, 42, 0.7);
  color: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
  .form-group input,
  .form-group select {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    border-radius: 10px;
  }
}

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

.form-group input:invalid:not(:placeholder-shown) {
  border-color: #fb7185;
}

.professional-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 20px 45px rgba(3, 7, 18, 0.55);
}

.professional-toggle-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.professional-toggle-icon {
  font-size: 1.35rem;
}

.professional-toggle-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(248, 250, 252, 0.9);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0;
}

.professional-switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 28px;
}

.professional-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
  pointer-events: none;
  appearance: none;
}

.professional-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.4);
  transition: all 0.3s ease;
}

.professional-slider::before {
  content: '';
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: linear-gradient(120deg, #fb7185, #f97316);
  box-shadow: 0 8px 16px rgba(249, 115, 22, 0.35);
  transition: all 0.3s ease;
}

.professional-switch input:checked + .professional-slider {
  background: rgba(249, 115, 22, 0.25);
  border-color: rgba(251, 146, 60, 0.6);
}

.professional-switch input:checked + .professional-slider::before {
  transform: translate(24px, -50%);
}

.professional-switch input:focus + .professional-slider {
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.35);
}

.professional-select-group {
  max-width: 320px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.professional-select-group label {
  display: block;
  text-align: center;
}

.professional-select-wrapper {
  position: relative;
}

.professional-select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 3rem;
}

.select-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(226, 232, 240, 0.85);
  font-size: 1.1rem;
}

.btn-large {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(120deg, #00d2ff 0%, #3a7bd5 100%);
  color: #f8fafc;
  box-shadow: 0 20px 35px rgba(6, 148, 206, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 768px) {
  .btn-large {
    padding: 0.75rem;
    font-size: 0.95rem;
    margin-top: 0.25rem;
  }
}

.btn-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 45px rgba(6, 148, 206, 0.55);
}

.auth-form .btn-large {
  margin-top: auto;
}

.btn-large:focus,
.btn-large:active {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

.error-message {
  padding: 1rem;
  background-color: rgba(248, 113, 113, 0.12);
  border-left: 4px solid rgba(248, 113, 113, 0.6);
  border-radius: 10px;
  color: #fecaca;
  font-size: 0.95rem;
  margin-top: 1rem;
  display: none;
}

.error-message.show {
  display: block;
  animation: slideDown 0.3s ease-out;
}

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

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  color: rgba(226, 232, 240, 0.75);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .auth-footer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    font-size: 0.85rem;
  }
}

.auth-footer a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.auth-footer a:hover {
  color: #c084fc;
  text-decoration: underline;
}

.auth-card-footer {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card-footer.placeholder {
  border-top: 1px solid transparent;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  opacity: 0;
}

.language-switcher-footer {
  text-align: center;
  margin-top: 6rem;
  color: rgba(226, 232, 240, 0.85);
  font-size: 1rem;
}

.language-switcher-footer a {
  color: rgba(226, 232, 240, 0.85);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s;
}

.language-switcher-footer a:hover {
  opacity: 0.8;
}

.language-switcher-footer a.active {
  text-decoration: underline;
}

/* Section invité */
.auth-card-guest {
  border-color: rgba(236, 72, 153, 0.35);
  box-shadow: 0 25px 45px rgba(5, 8, 23, 0.85);
}

@media (max-width: 991.98px) {
  .auth-card-guest {
    border-color: transparent;
    box-shadow: none;
  }
}

.guest-description {
  text-align: center;
  color: rgba(226, 232, 240, 0.75);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .guest-description {
    font-size: 0.85rem;
  }
}

.guest-footer {
  flex-direction: column;
}

/* Responsive */
@media (max-width: 480px) {

  .auth-header h1 {
    font-size: 4.5rem;  /* Taille globale titre sur très petits écrans - MODIFIER ICI */
    margin-bottom: 0.5rem;
  }

  .auth-header .onparty-badge {
    font-size: 1.8rem;  /* Taille badge "ON" sur petits écrans - MODIFIER ICI */
    padding: 0.3rem 1.05rem;
  }

  .auth-header .onparty-letter {
    font-size: 1.65rem;  /* Taille lettre "O" sur petits écrans - MODIFIER ICI */
  }

  .auth-header .onparty-brand-text {
    font-size: 1.5rem;  /* Taille "Party" sur petits écrans - MODIFIER ICI */
  }

  .auth-header-wrapper {
    margin-bottom: 1rem;
  }

  .auth-subtitle {
    font-size: 0.75rem;
  }

  .auth-card h2 {
    font-size: 1.2rem;
    margin: 0 0 0.4rem 0;
  }

  .form-group {
    gap: 0.25rem;
  }

  .form-group label {
    font-size: 0.8rem;
  }

  .form-group input,
  .form-group select {
    padding: 0.55rem 0.7rem;
    font-size: 0.85rem;
  }

  .btn-large {
    padding: 0.65rem;
    font-size: 0.9rem;
    margin-top: 0.15rem;
  }

  .auth-footer,
  .guest-description {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
  }

  .auth-form {
    gap: 0.6rem;
  }
}

.auth-page.theme-light .auth-card,
.auth-page.theme-light .auth-card-guest {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 35px 60px rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

@media (max-width: 991.98px) {
  .auth-page.theme-light .auth-card,
  .auth-page.theme-light .auth-card-guest {
    background: transparent;
    border: none;
    box-shadow: none;
  }
}

.auth-page.theme-light .auth-card h2,
.auth-page.theme-light .auth-card-guest h2,
.auth-page.theme-light .auth-header h1 {
  color: #0f172a;
  text-shadow: none;
}

.auth-page.theme-light .auth-subtitle,
.auth-page.theme-light .auth-footer,
.auth-page.theme-light .auth-footer a,
.auth-page.theme-light .guest-description {
  color: #475569;
  text-shadow: none;
}

.auth-page.theme-light .form-group label {
  color: #0f172a;
}

.auth-page.theme-light .form-group input,
.auth-page.theme-light .form-group select {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

@media (max-width: 991.98px) {
  .auth-page.theme-light .form-group input,
  .auth-page.theme-light .form-group select {
    background: transparent;
    border-bottom-color: rgba(148, 163, 184, 0.4);
    box-shadow: none;
  }
}

.auth-page.theme-light .form-group input:focus,
.auth-page.theme-light .form-group select:focus {
  background: rgba(255, 255, 255, 1);
}

@media (max-width: 991.98px) {
  .auth-page.theme-light .form-group input:focus,
  .auth-page.theme-light .form-group select:focus {
    background: rgba(236, 72, 153, 0.08);
    border-bottom-color: #ec4899;
  }
}

.auth-page.theme-light .professional-toggle {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(203, 213, 225, 0.7);
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.08);
}

.auth-page.theme-light .professional-toggle-label {
  color: #0f172a;
}

.auth-page.theme-light .professional-slider {
  background: rgba(226, 232, 240, 0.9);
  border-color: rgba(203, 213, 225, 0.8);
}

.auth-page.theme-light .professional-switch input:checked + .professional-slider {
  background: rgba(251, 191, 36, 0.25);
  border-color: rgba(248, 113, 113, 0.45);
}

.auth-page.theme-light .select-arrow {
  color: #0f172a;
}

.auth-page.theme-light .btn-large {
  background: linear-gradient(120deg, #6366f1 0%, #ec4899 100%);
  color: #fff;
}

/* Sessions invité récentes */
#recentGuestSessions .card-body h3,
#recentGuestSessions .card-body p {
  color: rgba(248, 250, 252, 0.95);
}

#recentGuestSessions .card-body .text-muted {
  color: rgba(226, 232, 240, 0.8) !important;
}

.guest-sessions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guest-session-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.guest-session-card:hover {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow: 0 10px 20px rgba(3, 7, 18, 0.4);
  transform: translateY(-2px);
}

.guest-session-info {
  flex: 1;
  min-width: 0;
}

.guest-session-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.95);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.guest-session-name i {
  color: #38bdf8;
}

.guest-session-meta {
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.75);
  margin-bottom: 0.35rem;
}

.guest-session-meta i {
  color: #c084fc;
}

.guest-session-time {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.8);
}

@media (max-width: 768px) {
  #recentGuestSessions .card-body {
    padding: 1rem;
  }

  #recentGuestSessions .card-body h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  #recentGuestSessions .card-body p {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .guest-session-card {
    padding: 0.85rem;
  }

  .guest-session-name {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
  }

  .guest-session-meta {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }

  .guest-session-time {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  #recentGuestSessions .card-body {
    padding: 0.75rem;
  }

  #recentGuestSessions .card-body h3 {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }

  #recentGuestSessions .card-body p {
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
  }

  .guest-session-card {
    padding: 0.7rem;
  }

  .guest-session-name {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
  }

  .guest-session-meta {
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
  }

  .guest-session-time {
    font-size: 0.7rem;
  }
}

.guest-session-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

.guest-session-actions .btn {
  white-space: nowrap;
}

/* Toasts */
.toast-loading,
.toast-error {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 12px;
  color: #f8fafc;
  font-size: 0.95rem;
  z-index: 10000;
  box-shadow: 0 20px 40px rgba(3, 7, 18, 0.6);
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast-loading.show,
.toast-error.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-error {
  background: rgba(239, 68, 68, 0.95);
  border-color: rgba(248, 113, 113, 0.6);
}

.toast-loading i.spin,
.bi-arrow-clockwise.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Theme light */
.auth-page.theme-light .guest-session-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(203, 213, 225, 0.7);
}

.auth-page.theme-light .guest-session-card:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(148, 163, 184, 0.8);
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.1);
}

.auth-page.theme-light .guest-session-name {
  color: #0f172a;
}

.auth-page.theme-light .guest-session-meta {
  color: #475569;
}

.auth-page.theme-light .guest-session-time {
  color: #64748b;
}

.auth-page.theme-light .toast-loading {
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
  border-color: rgba(203, 213, 225, 0.8);
}

.auth-page.theme-light .toast-error {
  background: rgba(239, 68, 68, 0.95);
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .guest-session-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .guest-session-actions {
    width: 100%;
    justify-content: stretch;
  }

  .guest-session-actions .btn {
    flex: 1;
  }

  .toast-loading,
  .toast-error {
    left: 10px;
    right: 10px;
    max-width: none;
  }
}

/* extra spacing handled via Bootstrap gx/gy classes; helper not needed */

/* Footer discret pour les pages d'authentification */
.auth-footer-page {
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
  color: rgba(148, 163, 184, 0.6);
  font-size: 0.85rem;
}

.auth-footer-page p {
  margin: 0;
}

@media (max-width: 768px) {
  .auth-footer-page {
    padding: 1.5rem 0;
    margin-top: 2rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .auth-footer-page {
    padding: 1rem 0;
    margin-top: 1.5rem;
    font-size: 0.75rem;
  }
}

.auth-page.theme-light .auth-footer-page {
  color: rgba(100, 116, 139, 0.7);
}

/* Modal de présentation */
.auth-intro-modal {
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.6);
}

.auth-intro-modal .modal-header {
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(236, 72, 153, 0.1));
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.auth-intro-modal .modal-title {
  color: rgba(248, 250, 252, 0.95);
  font-size: 1.6rem;
  font-weight: 700;
}

.auth-intro-modal .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.auth-intro-modal .btn-close:hover {
  opacity: 1;
}

.auth-intro-modal .modal-body {
  padding: 2rem;
  color: rgba(226, 232, 240, 0.9);
}

.auth-intro-modal .lead {
  color: rgba(248, 250, 252, 0.85);
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .auth-intro-modal .modal-title {
    font-size: 1.3rem;
  }

  .auth-intro-modal .lead {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .auth-intro-modal .modal-body {
    padding: 1.25rem;
  }

  .auth-intro-modal .modal-header {
    padding: 1rem 1.25rem;
  }

  .auth-intro-modal .modal-footer {
    padding: 1rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .auth-intro-modal .modal-title {
    font-size: 1.1rem;
  }

  .auth-intro-modal .lead {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .auth-intro-modal .modal-body {
    padding: 1rem;
  }

  .auth-intro-modal .modal-header {
    padding: 0.85rem 1rem;
  }

  .auth-intro-modal .modal-footer {
    padding: 0.85rem 1rem;
  }
}

.auth-intro-modal .modal-footer {
  padding: 1.5rem 2rem;
  background: rgba(15, 23, 42, 0.5);
}


.auth-intro-modal .btn-outline-secondary {
  border-color: rgba(148, 163, 184, 0.4);
  color: rgba(226, 232, 240, 0.85);
}

.auth-intro-modal .btn-outline-secondary:hover {
  background: rgba(148, 163, 184, 0.2);
  border-color: rgba(148, 163, 184, 0.6);
  color: #fff;
}

/* Bouton pour réouvrir le modal */
#showIntroButton .btn {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.4);
  color: rgba(56, 189, 248, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

#showIntroButton .btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.6);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(56, 189, 248, 0.3);
}
