:root {
  --rche-primary: #42c2ff;
  --rche-primary-dark: #2a9fd4;
  --rche-accent: #f06292;
  --rche-accent-dark: #d81b60;
  --rche-success: #76e05e;
  --rche-cream: #fff9e1;
  --rche-text-warm: #3e2723;
  --rche-aside-bg: #1a1520;
  --rche-hero-gradient: linear-gradient(135deg, #1a1520 0%, #2d1f3d 50%, #1a2838 100%);
}

/* Navbar */
.navbar.is-rche {
  background-color: var(--rche-primary-dark);
  border-bottom: 2px solid var(--rche-accent);
}

.navbar.is-rche .navbar-item,
.navbar.is-rche .navbar-link {
  color: #fff;
}

.navbar.is-rche .navbar-item:hover,
.navbar.is-rche .navbar-link:hover {
  background-color: rgba(240, 98, 146, 0.25);
  color: #fff;
}

.navbar .image.logo img {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--rche-accent);
}

.rche-about-logo {
  width: 192px;
  height: 192px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(66, 194, 255, 0.35);
}

/* Bulma semantic colors → RCHE palette */
.tag.is-info,
.button.is-info,
.notification.is-info {
  background-color: var(--rche-primary);
  color: #fff;
}

.tag.is-info.is-light {
  background-color: rgba(66, 194, 255, 0.2);
  color: var(--rche-primary);
}

.has-text-info {
  color: var(--rche-primary) !important;
}

.has-text-primary {
  color: var(--rche-accent) !important;
}

.has-text-danger {
  color: var(--rche-accent-dark) !important;
}

a {
  color: var(--rche-primary);
}

a:hover {
  color: var(--rche-accent);
}

/* Layout shell */
aside.aside {
  background-color: var(--rche-aside-bg);
  border-right: 3px solid var(--rche-accent);
}

.hero.is-hero-bar {
  background: var(--rche-hero-gradient);
}

.menu-list a.is-active {
  background-color: var(--rche-primary-dark);
  color: #fff;
}

.menu-list a:hover {
  background-color: rgba(66, 194, 255, 0.15);
}

/* Dashboard character panel */
.rche-character-card {
  border: 1px solid var(--rche-accent);
  overflow: hidden;
}

.rche-character-card img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  display: block;
  background: linear-gradient(180deg, rgba(66, 194, 255, 0.08) 0%, transparent 100%);
}

.rche-aside-art {
  padding: 0.75rem;
  text-align: center;
}

.rche-aside-art img {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
  opacity: 0.9;
  border-radius: 8px;
}

@media screen and (max-width: 1023px) {
  .rche-aside-art {
    display: none;
  }
}

/* Error pages */
.rche-error-art {
  width: 128px;
  height: 128px;
  object-fit: contain;
  border-radius: 12px;
}

/* Auth pages (login / signup) */
.auth-page-body {
  margin: 0;
  min-height: 100dvh;
  background: #0f0c14;
  color: #f5f5f5;
  overflow-x: hidden;
}

.auth-page__backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.auth-page__backdrop-img {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: center 25%;
  filter: blur(1px) brightness(0.5) saturate(1.15);
  transform: scale(1.06);
  user-select: none;
  pointer-events: none;
}

.auth-page__backdrop-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(15, 12, 20, 0.94) 0%,
      rgba(15, 12, 20, 0.78) 32%,
      rgba(15, 12, 20, 0.45) 58%,
      rgba(15, 12, 20, 0.35) 100%
    ),
    radial-gradient(ellipse at 70% 80%, rgba(240, 98, 146, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse at 30% 20%, rgba(66, 194, 255, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.auth-page {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 100dvh;
  padding: 2rem 2.5rem 2rem clamp(2.5rem, 25vw, 7rem);
  box-sizing: border-box;
}

.auth-page__form-col {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 520px;
}

.auth-page__card {
  width: 100%;
  padding: 2.25rem 2rem;
  border-radius: 18px;
  border: 1px solid rgba(66, 194, 255, 0.4);
  background: rgba(18, 14, 24, 0.82);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(66, 194, 255, 0.08);
  backdrop-filter: blur(16px);
}

.auth-page__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.auth-page__logo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--rche-accent);
}

.auth-page__brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.auth-page__subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.auth-page__card .field:not(:last-child) {
  margin-bottom: 1.125rem;
}

.auth-page__card .button {
  min-height: 2.75rem;
  font-size: 1.05rem;
}

.auth-page__card .label {
  color: #eee;
  font-size: 1rem;
}

.auth-page__card .input {
  min-height: 2.75rem;
  font-size: 1.05rem;
  background-color: rgba(0, 0, 0, 0.35);
  border-color: rgba(66, 194, 255, 0.35);
  color: #fff;
}

.auth-page__card .input:focus {
  border-color: var(--rche-primary);
  box-shadow: 0 0 0 0.125em rgba(66, 194, 255, 0.35);
}

.auth-page__card .help {
  color: rgba(255, 255, 255, 0.55);
}

.auth-page__card a {
  color: var(--rche-primary);
}

.auth-page__card a:hover {
  color: var(--rche-accent);
}

@media screen and (max-width: 768px) {
  .auth-page__backdrop-img {
    object-position: center 15%;
    filter: blur(12px) brightness(0.42) saturate(1.1);
  }

  .auth-page__backdrop-scrim {
    background:
      linear-gradient(
        180deg,
        rgba(15, 12, 20, 0.88) 0%,
        rgba(15, 12, 20, 0.72) 45%,
        rgba(15, 12, 20, 0.85) 100%
      ),
      radial-gradient(ellipse at 50% 100%, rgba(240, 98, 146, 0.18) 0%, transparent 60%);
  }

  .auth-page {
    justify-content: center;
    padding: 1.25rem;
  }

  .auth-page__form-col {
    max-width: none;
  }

  .auth-page__card {
    padding: 1.75rem 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page__backdrop-img {
    filter: brightness(0.5) saturate(1.05);
    transform: none;
  }
}

/* Auth button stack gap (mt-1 … mt-4) */
.auth-button-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.25rem;
}

.auth-button-group .control {
  width: 100%;
}

.auth-button-group .button {
  width: 100%;
}

.auth-button-group.auth-mt-1 {
  gap: 0.5rem;
}

.auth-button-group.auth-mt-2 {
  gap: 0.75rem;
}

.auth-button-group.auth-mt-3 {
  gap: 1rem;
}

.auth-button-group.auth-mt-4 {
  gap: 1.5rem;
}

.auth-register-help {
  margin-top: 1rem;
  text-align: center;
}

/* eAmusement pass card branding */
.ecard-brand {
  background-color: var(--rche-primary) !important;
}

.ecard {
  background-image: url('/static/img/rche/rche-logo.gif') !important;
}
