/* ==========================================================================
   AUTH - RESERVAS BOCARACA
   Login, registro y recuperación con paleta alineada al dashboard.
   ========================================================================== */

:root {
  --auth-bg: #101010;
  --auth-bg-2: #171717;
  --auth-surface: #1e1e1e;
  --auth-surface-2: #242424;
  --auth-surface-3: #2b2b2b;
  --auth-input: #202020;
  --auth-input-soft: #262626;

  --auth-border: rgba(228, 228, 228, 0.08);
  --auth-border-soft: rgba(228, 228, 228, 0.05);
  --auth-border-strong: rgba(218, 198, 20, 0.38);

  --auth-text: #e4e4e4;
  --auth-text-soft: #b8b8b8;
  --auth-muted: #7f7f7f;

  --auth-yellow: #dac614;
  --auth-yellow-2: #f0dd1e;

  --auth-success: #22c55e;
  --auth-danger: #ef4444;
  --auth-warning: #dac614;
  --auth-info: #7f7f7f;

  --auth-shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.42);
  --auth-shadow-md: 0 14px 32px rgba(0, 0, 0, 0.28);

  --auth-radius-xl: 30px;
  --auth-radius-lg: 22px;
  --auth-radius-md: 16px;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body.rb-auth-page {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% -10%, rgba(218, 198, 20, 0.1), transparent 30%),
    linear-gradient(180deg, #161616 0%, #101010 100%) !important;
  color: var(--auth-text);
  overflow-x: hidden;
}

.rb-auth-page *,
.rb-auth-page *::before,
.rb-auth-page *::after {
  box-sizing: border-box;
}

.rb-auth-page a {
  color: inherit;
  text-decoration: none;
}

.rb-auth-shell {
  width: 100%;
  min-height: 100dvh;
  padding: 20px 14px 30px;
  display: flex;
  justify-content: center;
}

.rb-auth-layout {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.rb-auth-hero {
  position: relative;
  padding: 12px 6px 0;
}

.rb-auth-hero--compact {
  padding-top: 22px;
}

.rb-auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 2px 8px 0;
}

.rb-auth-brand__logo-img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  display: block;
  filter:
    drop-shadow(0 14px 24px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 14px rgba(218, 198, 20, 0.08));
}

.rb-auth-brand__copy,
.rb-auth-hero__simple {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}

.rb-auth-eyebrow {
  color: var(--auth-yellow);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rb-auth-brand__copy h1,
.rb-auth-hero__simple h1 {
  margin: 0;
  color: var(--auth-text);
  font-size: 2.08rem;
  font-weight: 950;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.rb-auth-brand__copy p,
.rb-auth-hero__simple p {
  margin: 0;
  max-width: 320px;
  color: var(--auth-text-soft);
  font-size: 0.98rem;
  line-height: 1.55;
  font-weight: 650;
}

/* ==========================================================================
   CARD
   ========================================================================== */

.rb-auth-card {
  background:
    radial-gradient(circle at 20% 0%, rgba(218, 198, 20, 0.06), transparent 28%),
    linear-gradient(180deg, #242424 0%, #1e1e1e 100%);
  color: var(--auth-text);
  border-radius: var(--auth-radius-xl);
  padding: 28px 22px 24px;
  border: 1px solid var(--auth-border);
  box-shadow:
    var(--auth-shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.rb-auth-card--long {
  padding-bottom: 26px;
}

.rb-auth-card__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 22px;
}

.rb-auth-kicker {
  color: var(--auth-yellow);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rb-auth-card__header h2 {
  margin: 0;
  color: var(--auth-text);
  font-size: 1.92rem;
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.rb-auth-card__header p {
  margin: 0;
  max-width: 292px;
  color: var(--auth-text-soft);
  font-size: 0.94rem;
  line-height: 1.55;
  font-weight: 650;
}

/* ==========================================================================
   FORM
   ========================================================================== */

.rb-auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rb-auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rb-auth-field label {
  color: var(--auth-text);
  font-size: 0.84rem;
  font-weight: 850;
}

.rb-auth-input {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  border-radius: var(--auth-radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
    var(--auth-input);
  border: 1px solid var(--auth-border);
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.rb-auth-input:focus-within,
.rb-auth-email-group:focus-within {
  border-color: var(--auth-border-strong);
  box-shadow: 0 0 0 4px rgba(218, 198, 20, 0.09);
}

.rb-auth-input i {
  width: 48px;
  flex: 0 0 48px;
  text-align: center;
  color: var(--auth-muted);
  font-size: 0.98rem;
}

.rb-auth-input input,
.rb-auth-input select {
  width: 100%;
  min-width: 0;
  height: 56px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--auth-text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 750;
  padding: 0 14px 0 0;
  color-scheme: dark;
}

.rb-auth-input input::placeholder {
  color: #8f8f8f;
  font-weight: 650;
}

.rb-auth-input--select {
  padding-right: 10px;
}

.rb-auth-input--select select {
  appearance: none;
  cursor: pointer;
}

.rb-auth-input--select::after {
  content: "\f282";
  font-family: "bootstrap-icons";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--auth-muted);
  pointer-events: none;
  font-size: 0.9rem;
}

/* ==========================================================================
   EMAIL GROUP
   ========================================================================== */

.rb-auth-email-group {
  position: relative;
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border-radius: var(--auth-radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
    var(--auth-input);
  border: 1px solid var(--auth-border);
  overflow: visible;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rb-auth-email-group input {
  width: 100%;
  min-width: 0;
  height: 56px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--auth-text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 750;
  padding: 0 14px;
}

.rb-auth-email-group input::placeholder {
  color: #8f8f8f;
}

.rb-auth-email-domain {
  min-width: 124px;
  height: 56px;
  border: 0;
  border-left: 1px solid var(--auth-border);
  background: rgba(255, 255, 255, 0.035);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  cursor: pointer;
  color: var(--auth-text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
}

.rb-auth-email-domain span {
  color: var(--auth-yellow);
  font-weight: 950;
}

.rb-auth-email-domain strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 78px;
}

.email-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 50;
  max-height: 220px;
  overflow-y: auto;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 16px;
  background: #242424;
  border: 1px solid var(--auth-border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.email-menu .item {
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--auth-text);
  font-size: 0.88rem;
  font-weight: 750;
  cursor: pointer;
}

.email-menu .item:hover {
  background: rgba(218, 198, 20, 0.14);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.rb-auth-btn {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    opacity 0.16s ease;
}

.rb-auth-btn:hover {
  transform: translateY(-1px);
}

.rb-auth-btn:active {
  transform: translateY(0);
}

.rb-auth-btn--primary {
  background:
    linear-gradient(180deg, var(--auth-yellow-2) 0%, var(--auth-yellow) 64%, #c5b30f 100%);
  color: #151515;
  box-shadow: 0 16px 30px rgba(218, 198, 20, 0.18);
}

.rb-auth-btn--secondary {
  background: #303030;
  color: var(--auth-text);
  border: 1px solid var(--auth-border);
}

/* ==========================================================================
   LINKS / VERSION / LOADER
   ========================================================================== */

.rb-auth-links {
  padding-top: 4px;
  text-align: center;
}

.rb-auth-links p {
  margin: 0 0 8px;
  color: var(--auth-text-soft);
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 650;
}

.rb-auth-links a {
  color: var(--auth-text);
  font-weight: 900;
}

.rb-auth-links a:hover {
  color: var(--auth-yellow);
}

.rb-auth-version {
  padding-top: 10px;
  min-height: 20px;
  text-align: center;
  color: var(--auth-muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.rb-auth-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--auth-text-soft);
  font-size: 0.9rem;
  font-weight: 750;
}

.rb-auth-loader__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(228, 228, 228, 0.16);
  border-top-color: var(--auth-yellow);
  border-radius: 50%;
  animation: rbAuthSpin 0.8s linear infinite;
}

@keyframes rbAuthSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   UTILS
   ========================================================================== */

.hidden {
  display: none !important;
}

/* Modal vencida: compatibilidad visual */

.expired-card {
  background:
    linear-gradient(180deg, rgba(34, 34, 34, 0.97), rgba(24, 24, 24, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 380px) {
  .rb-auth-shell {
    padding-inline: 10px;
  }

  .rb-auth-card {
    padding: 24px 18px 22px;
  }

  .rb-auth-card__header h2,
  .rb-auth-brand__copy h1,
  .rb-auth-hero__simple h1 {
    font-size: 1.78rem;
  }

  .rb-auth-brand__logo-img {
    width: 66px;
    height: 66px;
  }
}

@media (min-width: 768px) {
  .rb-auth-shell {
    align-items: center;
    padding: 28px 20px;
  }

  .rb-auth-layout {
    max-width: 430px;
  }
}