/* Casino Classic auth template. Security-critical form and scripts are
   injected by server/utils/authPageRender.js via {{AUTH_FORM}} and
   {{AUTH_SCRIPT}}; this file owns presentation only. */

.auth-template--casino-classic {
  --cc-gold: var(--lobby-primary, #d4af37);
  --cc-black: var(--lobby-secondary, #0a0a0a);
  --cc-cream: #f5e6c8;
  --cc-wine: #4a0e1c;
  --cc-card-bg: #0d1421;
  --cc-card-border: rgba(212, 175, 55, 0.45);
  --cc-text-muted: rgba(245, 230, 200, 0.7);
  --cc-shadow-glow: 0 0 24px rgba(212, 175, 55, 0.18);
  --cc-button-bg: linear-gradient(180deg, #e8c863 0%, var(--cc-gold) 50%, #b8932a 100%);

  min-height: 100vh;
  margin: 0;
  color: var(--cc-cream);
  background-color: var(--cc-black);
  background-image: radial-gradient(ellipse at top, rgba(74, 14, 28, 0.55) 0%, var(--cc-black) 55%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
}

.auth-template--casino-classic *,
.auth-template--casino-classic *::before,
.auth-template--casino-classic *::after {
  box-sizing: border-box;
}

.auth-template--casino-classic .auth-shell {
  width: min(100%, 1080px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 430px);
  gap: 28px;
  align-items: center;
}

.auth-template--casino-classic .auth-brand {
  position: relative;
  min-height: 520px;
  padding: 72px 44px 56px;
  border: 1px solid var(--cc-card-border);
  border-radius: 4px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.04) 0%, rgba(10, 10, 10, 0) 100%),
    var(--lobby-card-bg, var(--cc-card-bg));
  box-shadow: var(--lobby-card-glow, var(--cc-shadow-glow));
  display: grid;
  align-content: center;
  text-align: center;
}

.auth-template--casino-classic .auth-brand::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 2px;
  pointer-events: none;
}

.auth-template--casino-classic .auth-brand__suits {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-size: 190px;
  color: rgba(212, 175, 55, 0.04);
  font-family: 'Playfair Display', serif;
}

.auth-template--casino-classic .auth-brand__suit {
  position: absolute;
  line-height: 1;
}

.auth-template--casino-classic .auth-brand__suit--spade { top: -30px; left: 3%; transform: rotate(-12deg); }
.auth-template--casino-classic .auth-brand__suit--heart { top: 18%; right: 4%; font-size: 150px; color: rgba(74, 14, 28, 0.18); }
.auth-template--casino-classic .auth-brand__suit--diamond { bottom: -20px; left: 35%; font-size: 140px; color: rgba(74, 14, 28, 0.14); }
.auth-template--casino-classic .auth-brand__suit--club { bottom: 7%; right: 16%; font-size: 112px; transform: rotate(8deg); }

.auth-template--casino-classic .auth-brand__logo-wrap {
  position: relative;
  z-index: 1;
  margin: 0 auto 18px;
}

.auth-template--casino-classic .auth-brand__logo {
  max-width: min(280px, 76vw);
  max-height: 84px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.35));
}

.auth-template--casino-classic .auth-brand__mark {
  width: 68px;
  height: 68px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--cc-button-bg);
  color: #111;
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 800;
}

.auth-template--casino-classic .auth-brand h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: var(--lobby-hero-title-color, var(--cc-gold));
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.35), 0 1px 0 rgba(0, 0, 0, 0.5);
}

.auth-template--casino-classic .auth-brand p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--lobby-hero-tagline-color, var(--cc-cream));
  font-size: 17px;
  font-style: italic;
  font-weight: 400;
}

.auth-template--casino-classic .auth-brand__rule {
  position: relative;
  z-index: 1;
  width: 220px;
  max-width: 100%;
  height: 1px;
  margin: 28px auto 0;
  background: linear-gradient(90deg, transparent, var(--cc-gold), transparent);
}

.auth-template--casino-classic .auth-brand__rule span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 10px;
  color: var(--cc-gold);
  background: var(--lobby-card-bg, var(--cc-card-bg));
  font-size: 14px;
}

.auth-template--casino-classic .auth-panel {
  border: 1px solid var(--lobby-card-border, var(--cc-card-border));
  border-radius: 4px;
  background: color-mix(in srgb, var(--lobby-card-bg, var(--cc-card-bg)) 92%, #000);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  padding: 28px;
}

.auth-template--casino-classic .auth-panel__head {
  margin: 0 0 20px;
}

.auth-template--casino-classic .auth-panel__eyebrow {
  margin: 0 0 8px;
  color: var(--lobby-card-variant-color, var(--cc-text-muted));
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-template--casino-classic .auth-panel h2 {
  margin: 0 0 8px;
  color: var(--lobby-card-title-color, var(--cc-gold));
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
}

.auth-template--casino-classic .auth-panel__copy {
  margin: 0;
  color: var(--cc-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.auth-template--casino-classic .auth-form {
  display: grid;
  gap: 14px;
}

.auth-template--casino-classic .auth-field {
  display: grid;
  gap: 7px;
  color: var(--cc-cream);
  font-size: 13px;
  font-weight: 700;
}

.auth-template--casino-classic .auth-field em {
  color: var(--cc-text-muted);
  font-style: normal;
  font-weight: 500;
}

.auth-template--casino-classic .auth-field input {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--cc-cream);
  font: inherit;
  padding: 0 12px;
  outline: none;
}

.auth-template--casino-classic .auth-field input:focus {
  border-color: var(--cc-gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cc-gold) 24%, transparent);
}

.auth-template--casino-classic .auth-submit {
  height: 48px;
  border: 0;
  border-radius: 3px;
  margin-top: 2px;
  background: var(--lobby-join-bg, var(--cc-button-bg));
  color: var(--lobby-join-text-color, #111);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
}

.auth-template--casino-classic .auth-submit:disabled {
  opacity: 0.68;
  cursor: wait;
}

.auth-template--casino-classic .auth-banner {
  border-radius: 3px;
  padding: 11px 12px;
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.45;
}

.auth-template--casino-classic .auth-banner--success {
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.32);
}

.auth-template--casino-classic .auth-banner--error {
  background: rgba(239, 68, 68, 0.14);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.32);
}

.auth-template--casino-classic .auth-error {
  min-height: 20px;
  margin: 2px 0 0;
  color: #fecaca;
  font-size: 13px;
  line-height: 1.45;
}

.auth-template--casino-classic .auth-resend {
  display: none;
  gap: 8px;
  align-items: center;
  margin: -4px 0 2px;
}

.auth-template--casino-classic .auth-resend[data-visible="1"] {
  display: grid;
}

.auth-template--casino-classic .auth-resend__button {
  justify-self: start;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cc-cream);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  padding: 8px 10px;
}

.auth-template--casino-classic .auth-resend__button:disabled {
  opacity: 0.68;
  cursor: wait;
}

.auth-template--casino-classic .auth-resend__status {
  min-height: 18px;
  color: var(--cc-text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.auth-template--casino-classic .auth-alt {
  margin: 18px 0 0;
  text-align: center;
  color: var(--cc-text-muted);
  font-size: 14px;
}

.auth-template--casino-classic .auth-alt a {
  color: var(--cc-gold);
  font-weight: 750;
  text-decoration: none;
}

.auth-template--casino-classic .auth-alt a:hover {
  text-decoration: underline;
}

@media (max-width: 840px) {
  .auth-template--casino-classic .auth-shell {
    grid-template-columns: 1fr;
    padding: 24px 18px;
  }

  .auth-template--casino-classic .auth-brand {
    min-height: 280px;
    padding: 44px 22px 40px;
  }
}

@media (max-width: 480px) {
  .auth-template--casino-classic .auth-panel {
    padding: 22px 18px;
  }

  .auth-template--casino-classic .auth-brand h1 {
    font-size: 34px;
  }
}

/* Login Hide elements: decorative / marketing only. Functional auth controls,
   banners, status messages, navigation links, and install gate stay visible. */
.auth-template[data-hide-marketingPanel="true"] .auth-brand,
.auth-template[data-hide-logo="true"] .auth-brand__logo-wrap,
.auth-template[data-hide-brandEyebrow="true"] .auth-brand__eyebrow,
.auth-template[data-hide-brandEyebrow="true"] .auth-brand__stamp,
.auth-template[data-hide-headline="true"] .auth-brand h1,
.auth-template[data-hide-tagline="true"] .auth-brand__copy,
.auth-template[data-hide-tagline="true"] .auth-brand > p:not(.auth-brand__eyebrow):not(.auth-brand__stamp),
.auth-template[data-hide-panelEyebrow="true"] .auth-panel__eyebrow,
.auth-template[data-hide-footerNote="true"] .auth-alt--footer,
.auth-template[data-hide-ornament="true"] .auth-brand__diamond,
.auth-template[data-hide-ornament="true"] .auth-brand__rule,
.auth-template[data-hide-ornament="true"] .auth-brand__suits,
.auth-template[data-hide-ornament="true"] .auth-brand__crest,
.auth-template[data-hide-ornament="true"] .auth-brand__ribbon,
.auth-template[data-hide-ornament="true"] .auth-brand__grid,
.auth-template[data-hide-ornament="true"] .auth-brand__lights,
.auth-template[data-hide-ornament="true"] .auth-brand__bokeh {
  display: none !important;
}

.auth-template[data-hide-ornament="true"] .auth-brand::before,
.auth-template[data-hide-ornament="true"] .auth-brand::after,
.auth-template[data-hide-ornament="true"] .auth-shell::before {
  content: none !important;
  display: none !important;
}

.auth-template[data-hide-marketingPanel="true"] .auth-shell {
  grid-template-columns: minmax(0, 460px);
  justify-content: center;
}

.auth-template[data-hide-marketingPanel="true"] .auth-panel {
  width: 100%;
}

@media (max-width: 480px) {
  .auth-template[data-hide-marketingPanelMobile="true"] .auth-brand {
    display: none !important;
  }

  .auth-template[data-hide-marketingPanelMobile="true"] .auth-shell {
    grid-template-columns: minmax(0, 1fr);
    justify-content: center;
  }

  .auth-template[data-hide-marketingPanelMobile="true"] .auth-panel {
    width: 100%;
  }
}
