:root {
  --gold: #c9a227;
  --gold-light: #e8d48b;
  --gold-dark: #9a7b1c;
  --ink: #0c0c0c;
  --ink-soft: #1a1a1a;
  --paper: #f3f3f5;
  --surface: #ffffff;
  --surface-2: #e8e8ec;
  --muted: #6b6b76;
  --line: rgba(0, 0, 0, 0.08);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  --radius: 1.25rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(201, 162, 39, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(0, 0, 0, 0.06), transparent 50%),
    var(--paper);
  min-height: 100vh;
}

.font-display {
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0.02em;
}

.tracking-brand {
  letter-spacing: 0.35em;
}

/* Surfaces */
.page-shell {
  background: var(--paper);
}

.surface-dark {
  background:
    radial-gradient(ellipse at top right, rgba(201, 162, 39, 0.18), transparent 45%),
    linear-gradient(160deg, #141414 0%, #0a0a0a 55%, #111 100%);
  color: #f5f5f5;
}

.surface-gray {
  background: var(--surface-2);
}

.surface-white {
  background: var(--surface);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-dark {
  background: linear-gradient(165deg, #1c1c1c, #0f0f0f);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  color: #f3f3f3;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.card-muted {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
  border-color: rgba(201, 162, 39, 0.45);
}

.section-band {
  background: var(--surface-2);
  border-block: 1px solid var(--line);
}

.logo-ring {
  border-radius: 9999px;
  box-shadow:
    0 0 0 1px rgba(201, 162, 39, 0.45),
    0 0 0 6px rgba(255, 255, 255, 0.08),
    0 16px 40px rgba(0, 0, 0, 0.25);
  background: #fff;
}

.gold-border {
  border: 1px solid rgba(201, 162, 39, 0.4);
}

.gold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative;
}

.gold-line::after {
  content: "✦";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold);
  font-size: 10px;
  background: transparent;
  padding: 0 8px;
  text-shadow: 0 0 12px rgba(201, 162, 39, 0.5);
}

.gold-line.on-light::after {
  background: var(--surface);
}

.gold-line.on-paper::after {
  background: var(--paper);
}

.gold-line.on-gray::after {
  background: var(--surface-2);
}

.gold-line.on-dark::after {
  background: #121212;
}

.btn-gold {
  background: linear-gradient(135deg, #e8d48b 0%, #c9a227 45%, #8a6d1a 100%);
  color: #0a0a0a;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 10px 28px rgba(201, 162, 39, 0.28);
}

.btn-gold:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 14px 32px rgba(201, 162, 39, 0.4);
}

.btn-gold:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-outline-gold {
  border: 1px solid rgba(201, 162, 39, 0.65);
  color: inherit;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-outline-gold:hover {
  background: rgba(201, 162, 39, 0.12);
  border-color: var(--gold);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f5f5f5;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.bg-gold-soft {
  background: rgba(201, 162, 39, 0.1);
}

.text-gold {
  color: var(--gold-dark);
}

.text-gold-bright {
  color: var(--gold-light);
}

.text-ink {
  color: var(--ink);
}

.text-muted {
  color: var(--muted);
}

.field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.75rem 1rem;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field:focus {
  border-color: rgba(201, 162, 39, 0.7);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.field-dark {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.field-dark:focus {
  border-color: rgba(201, 162, 39, 0.7);
}

.num-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  user-select: none;
}

.num-cell:hover:not(.taken):not(.disabled) {
  transform: translateY(-2px) scale(1.03);
  border-color: var(--gold);
  background: #0c0c0c;
  color: var(--gold-light);
}

.num-cell.taken {
  background: #dcdce2;
  color: #8a8a96;
  cursor: not-allowed;
  border-color: transparent;
  box-shadow: none;
}

.num-cell.mine {
  background: linear-gradient(135deg, #e8d48b, #c9a227);
  color: #0a0a0a;
  border-color: var(--gold-dark);
}

.num-cell.winner {
  background: #0a0a0a;
  color: var(--gold-light);
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold);
}

.num-cell.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.modal-backdrop {
  background: rgba(8, 8, 8, 0.62);
  backdrop-filter: blur(8px);
}

.sorteio-stage {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(201, 162, 39, 0.2), transparent 48%),
    linear-gradient(180deg, #101010 0%, #1a1a1a 40%, #0c0c0c 100%);
  color: #f5f5f5;
}

.sorteio-stage.is-drawing::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(201, 162, 39, 0.22), transparent 42%),
    radial-gradient(ellipse at 50% 100%, rgba(201, 162, 39, 0.08), transparent 55%);
  animation: stage-breathe 1.1s ease-in-out infinite alternate;
}

.sorteio-stage.is-drawing::after {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
  background:
    conic-gradient(from 0deg at 50% 45%, transparent 0deg, rgba(232, 212, 139, 0.07) 28deg, transparent 56deg, transparent 180deg, rgba(201, 162, 39, 0.05) 208deg, transparent 240deg);
  animation: stage-spin 8s linear infinite;
  opacity: 0.7;
}

.sorteio-stage > *:not(.sorteio-countdown) {
  position: relative;
  z-index: 1;
}

@keyframes stage-breathe {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

@keyframes stage-spin {
  to { transform: rotate(360deg); }
}

.sorteio-arena {
  position: relative;
}

.sorteio-rings {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(22rem, 78vw);
  height: min(22rem, 78vw);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.sorteio-rings span {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 1px solid rgba(201, 162, 39, 0.18);
  opacity: 0;
}

.sorteio-arena.is-live .sorteio-rings span {
  animation: ring-expand 2.4s ease-out infinite;
}

.sorteio-arena.is-live .sorteio-rings span:nth-child(2) {
  animation-delay: 0.8s;
}

.sorteio-arena.is-live .sorteio-rings span:nth-child(3) {
  animation-delay: 1.6s;
}

@keyframes ring-expand {
  0% { transform: scale(0.55); opacity: 0.55; }
  100% { transform: scale(1.35); opacity: 0; }
}

.sorteio-number-wrap {
  position: relative;
  z-index: 2;
  min-height: clamp(4.5rem, 20vw, 10rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sorteio-number {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.75rem, 16vw, 9rem);
  line-height: 1;
  color: var(--gold-light);
  text-shadow: 0 0 40px rgba(201, 162, 39, 0.25);
  transition: transform 0.08s ease, filter 0.15s ease, text-shadow 0.2s ease;
  will-change: transform, filter;
  word-break: break-all;
  max-width: 100%;
}

.sorteio-number.spinning {
  animation: pulse-gold 0.12s ease infinite alternate;
  filter: blur(1.2px) brightness(1.15);
  text-shadow:
    0 0 28px rgba(232, 212, 139, 0.55),
    0 0 60px rgba(201, 162, 39, 0.35);
}

.sorteio-number.spinning.is-fast {
  filter: blur(3px) brightness(1.25);
  animation-duration: 0.08s;
}

.sorteio-number.spinning.is-slow {
  filter: blur(0.4px) brightness(1.08);
  animation-duration: 0.22s;
}

.sorteio-number.is-reveal {
  animation: number-land 0.85s cubic-bezier(0.2, 1.4, 0.35, 1) both;
  filter: none;
  text-shadow:
    0 0 24px rgba(232, 212, 139, 0.7),
    0 0 80px rgba(201, 162, 39, 0.45);
}

@keyframes pulse-gold {
  from { transform: scale(1) translateY(0); color: #e8d48b; }
  to { transform: scale(1.05) translateY(-2px); color: #fff; }
}

@keyframes number-land {
  0% { transform: scale(1.35); opacity: 0.35; filter: blur(6px); }
  55% { transform: scale(0.94); opacity: 1; filter: blur(0); }
  75% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.sorteio-winner-block {
  opacity: 0;
  transform: translateY(14px);
}

.sorteio-winner-block.show {
  animation: fade-up 0.7s ease both;
}

.sorteio-winner-block .winner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold-light);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
}

.sorteio-winner-block.show .winner-badge {
  animation: fade-up 0.55s ease 0.15s both;
}

.sorteio-countdown {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.78));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.sorteio-countdown.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sorteio-countdown.sorteio-gate {
  pointer-events: auto;
  cursor: default;
}

.sorteio-countdown.sorteio-gate:not(.active) {
  display: none !important;
}

.sorteio-countdown .count-digit {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(5rem, 28vw, 12rem);
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 40px rgba(201, 162, 39, 0.55);
}

@keyframes count-pop {
  0% { transform: scale(0.4); opacity: 0; filter: blur(8px); }
  45% { transform: scale(1.12); opacity: 1; filter: blur(0); }
  100% { transform: scale(1); opacity: 0.15; }
}

.sorteio-floaters {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}

.sorteio-floater {
  position: absolute;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(0.9rem, 2.4vw, 1.35rem);
  color: rgba(232, 212, 139, 0.55);
  opacity: 0;
  animation: floater-rise linear forwards;
  text-shadow: 0 0 12px rgba(201, 162, 39, 0.25);
}

@keyframes floater-rise {
  0% { transform: translateY(18px) scale(0.85); opacity: 0; }
  15% { opacity: 0.7; }
  100% { transform: translateY(-120px) scale(1.05); opacity: 0; }
}

.sorteio-burst {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 3;
}

.sorteio-burst.active::before,
.sorteio-burst.active::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  border: 2px solid rgba(232, 212, 139, 0.65);
  transform: translate(-50%, -50%) scale(0.2);
  animation: burst-ring 0.9s ease-out forwards;
}

.sorteio-burst.active::after {
  animation-delay: 0.12s;
  border-color: rgba(201, 162, 39, 0.4);
}

@keyframes burst-ring {
  to {
    transform: translate(-50%, -50%) scale(18);
    opacity: 0;
  }
}

.sorteio-status {
  min-height: 1.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: rgba(232, 212, 139, 0.75);
}

.sorteio-status.is-pulse {
  animation: status-pulse 0.9s ease-in-out infinite alternate;
}

@keyframes status-pulse {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

/* Sorteio */
.premio-chip {
  width: 5.75rem;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  text-align: left;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
  flex: 0 0 auto;
}

@media (min-width: 640px) {
  .premio-chip { width: 7rem; }
}

.premios-strip {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0.65rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.35rem;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
}

@media (min-width: 640px) {
  .premios-strip {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
  }
}

.premio-chip img,
.premio-chip-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  display: block;
}

.premio-chip-placeholder {
  background: rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.625rem;
}

.premio-chip-body {
  padding: 0.4rem 0.5rem 0.55rem;
}

.premio-chip-label {
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(232, 212, 139, 0.8);
}

.premio-chip-title {
  font-size: 0.7rem;
  color: #fff;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.premio-chip.is-active {
  border-color: rgba(201, 162, 39, 0.85);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.35), 0 12px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-4px) scale(1.04);
}

.premio-chip.is-done {
  border-color: rgba(201, 162, 39, 0.45);
  opacity: 0.72;
}

.premio-chip.is-done.is-active {
  opacity: 1;
}

.sorteio-winners-list {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.sorteio-winners-list.show {
  display: flex;
}

.sorteio-winner-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(10, 10, 10, 0.1);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.sorteio-winner-row.is-new {
  animation: fade-up 0.55s ease both;
}

.sorteio-winner-row-prize {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 12rem;
}

.sorteio-winner-row-prize img {
  width: 2.75rem;
  height: 3.4rem;
  object-fit: cover;
  border-radius: 0.45rem;
  flex-shrink: 0;
}

.sorteio-winner-row-prize .label {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a6d1a;
  font-weight: 600;
}

.sorteio-winner-row-prize .title {
  color: #0a0a0a;
  font-size: 0.95rem;
  line-height: 1.25;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sorteio-winner-row-person {
  text-align: right;
  min-width: 0;
  flex: 1 1 8rem;
}

.sorteio-winner-row-person .num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 5vw, 1.65rem);
  line-height: 1;
  color: #0a0a0a;
  font-weight: 700;
}

.sorteio-winner-row-person .name {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: #1a1a1a;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sorteio-winner-row-person .meta {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: #4a4a4a;
}

@media (max-width: 639px) {
  .sorteio-winner-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .sorteio-winner-row-person {
    text-align: left;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

  .sorteio-arena.card-dark {
    padding: 1.25rem !important;
  }

  .sorteio-status {
    letter-spacing: 0.08em;
    font-size: 0.68rem;
  }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fade-up 0.6s ease both;
}

.fade-up-delay {
  animation: fade-up 0.7s ease 0.12s both;
}

.confetti-piece {
  position: fixed;
  width: 8px;
  height: 14px;
  top: -20px;
  z-index: 80;
  animation: confetti-fall linear forwards;
  pointer-events: none;
}

.confetti-piece.is-round {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
}

.confetti-piece.is-ribbon {
  width: 4px;
  height: 18px;
  border-radius: 2px;
}

.confetti-piece.from-center {
  top: 42%;
  animation-name: confetti-burst;
}

@keyframes confetti-fall {
  to {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

@keyframes confetti-burst {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) rotate(720deg) scale(0.4);
    opacity: 0;
  }
}

.admin-shell {
  background: var(--paper);
}

.admin-sidebar {
  background:
    radial-gradient(ellipse at top, rgba(201, 162, 39, 0.12), transparent 55%),
    #0e0e0e;
  color: #f2f2f2;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-link {
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sidebar-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-link.active {
  background: rgba(201, 162, 39, 0.16);
  border-color: rgba(201, 162, 39, 0.45);
  color: #fff;
}

.admin-topbar {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.data-table thead {
  background: #111;
  color: #f5f5f5;
}

.data-table tbody tr:nth-child(even) {
  background: #f7f7f9;
}

.data-table tbody tr:nth-child(odd) {
  background: #fff;
}

.status-pill {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid currentColor;
  font-weight: 600;
}

.status-ativa {
  color: #0f7a3a;
  background: rgba(15, 122, 58, 0.08);
}

.status-rascunho {
  color: #6b6b76;
  background: rgba(107, 107, 118, 0.1);
}

.status-encerrada {
  color: #444;
  background: rgba(0, 0, 0, 0.06);
}

.status-sorteada {
  color: #8a6d1a;
  background: rgba(201, 162, 39, 0.14);
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  background: #111;
  color: #f5f5f5;
  font-size: 0.75rem;
}

.stat-chip span {
  color: var(--gold-light);
  font-weight: 700;
}

.mesh-bg {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Login */
.login-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  color: #f5f5f5;
  background: #050505;
  -webkit-overflow-scrolling: touch;
}

.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.55) 0%, rgba(5, 5, 5, 0.82) 55%, rgba(5, 5, 5, 0.94) 100%),
    url("../img/ponte-da-amizade.webp") center 40% / cover no-repeat;
  transform: scale(1.02);
  filter: saturate(0.9) brightness(0.72);
}

.login-raffle-pattern {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23c9a227' stroke-width='1'%3E%3Crect x='10' y='18' width='52' height='36' rx='4'/%3E%3Crect x='78' y='78' width='52' height='36' rx='4'/%3E%3C/g%3E%3Ctext x='36' y='42' text-anchor='middle' font-family='Georgia,serif' font-size='16' fill='%23e8d48b'%3E07%3C/text%3E%3Ctext x='104' y='102' text-anchor='middle' font-family='Georgia,serif' font-size='16' fill='%23e8d48b'%3E21%3C/text%3E%3Ccircle cx='110' cy='30' r='10' fill='none' stroke='%23c9a227'/%3E%3Ctext x='110' y='34' text-anchor='middle' font-family='Georgia,serif' font-size='10' fill='%23e8d48b'%3E88%3C/text%3E%3Ccircle cx='30' cy='110' r='10' fill='none' stroke='%23c9a227'/%3E%3Ctext x='30' y='114' text-anchor='middle' font-family='Georgia,serif' font-size='10' fill='%23e8d48b'%3E03%3C/text%3E%3C/svg%3E");
  background-size: 140px 140px;
  animation: raffle-drift 48s linear infinite;
}

@keyframes raffle-drift {
  from { background-position: 0 0; }
  to { background-position: 140px 140px; }
}

.login-flags {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.login-flag {
  position: absolute;
  width: clamp(72px, 12vw, 130px);
  opacity: 0.42;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
  animation: flag-float 7s ease-in-out infinite;
}

.login-flag.py {
  top: 8%;
  left: 6%;
  transform: rotate(-12deg);
}

.login-flag.br {
  top: 14%;
  right: 7%;
  transform: rotate(10deg);
  animation-delay: -2.5s;
}

.login-flag.py-2 {
  bottom: 12%;
  right: 10%;
  width: clamp(56px, 9vw, 96px);
  opacity: 0.28;
  transform: rotate(8deg);
  animation-delay: -4s;
}

.login-flag.br-2 {
  bottom: 16%;
  left: 8%;
  width: clamp(56px, 9vw, 96px);
  opacity: 0.28;
  transform: rotate(-8deg);
  animation-delay: -1.2s;
}

@keyframes flag-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.login-bridge-caption {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  pointer-events: none;
}

@media (max-height: 720px) {
  .login-bridge-caption {
    display: none;
  }
}

.login-bridge-caption strong {
  color: rgba(232, 212, 139, 0.75);
  font-weight: 600;
}

.login-shell {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 26rem;
}

.login-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 1.35rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  color: #0c0c0c;
}

.login-card label,
.login-card .text-muted,
.login-card p {
  color: #4a4a55;
}

.login-card label {
  color: #6b6b76;
}

.login-card strong {
  color: #0c0c0c;
}

.login-card .field {
  background: #f3f3f5;
  color: #0c0c0c;
  border-color: rgba(0, 0, 0, 0.12);
}

.login-card .field:focus {
  background: #fff;
  border-color: rgba(201, 162, 39, 0.7);
}

.login-card .text-red-700 {
  color: #b91c1c;
}

.login-hero-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.login-hero-strip img {
  width: 42px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.login-hero-strip span {
  color: rgba(232, 212, 139, 0.85);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
