/* 9WING Auth Modal & Showcase Styles (Matching Screenshot media_1792872420452_a72772f9.png) */

:root {
  --w-bg: #070709;
  --w-bg-2: #0d0e12;
  --w-surface: rgba(14, 16, 21, 0.94);
  --w-surface-card: rgba(13, 14, 18, 0.96);
  --w-line: rgba(255, 255, 255, 0.08);
  --w-line-gold: rgba(255, 196, 0, 0.28);
  --w-gold: #ffc400;
  --w-gold-2: #ffe066;
  --w-gold-bright: #ffea79;
  --w-gold-dark: #b8860b;
  --w-text: #f7f7f8;
  --w-muted: #8e94a0;
  --w-green: #22c55e;
  --w-red: #ef4444;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: var(--w-bg);
  backdrop-filter: blur(20px);
  z-index: 10000;
  overflow-y: auto;
  overflow-x: hidden;
  display: block;
}

@media (min-height: 800px) and (min-width: 1025px) {
  .auth-overlay {
    overflow-y: hidden;
  }
}

.auth-overlay.hidden {
  display: none !important;
}

/* Ambient Halos */
.auth-overlay::before {
  content: "";
  position: fixed;
  width: 580px;
  height: 580px;
  left: -220px;
  top: -220px;
  border-radius: 50%;
  border: 1px solid rgba(255, 196, 0, 0.16);
  box-shadow: 0 0 140px rgba(255, 196, 0, 0.09), inset 0 0 90px rgba(255, 196, 0, 0.04);
  pointer-events: none;
  z-index: 0;
}

.auth-overlay::after {
  content: "";
  position: fixed;
  width: 440px;
  height: 440px;
  right: -150px;
  bottom: -150px;
  border-radius: 50%;
  border: 1px solid rgba(255, 196, 0, 0.12);
  box-shadow: 0 0 120px rgba(255, 196, 0, 0.06);
  pointer-events: none;
  z-index: 0;
}

.auth-close-floating {
  position: fixed;
  top: 24px;
  right: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #94a3b8;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.2s ease;
}

.auth-close-floating:hover {
  background: rgba(255, 196, 0, 0.2);
  border-color: var(--w-gold);
  color: #ffffff;
  transform: scale(1.05);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(430px, 0.85fr);
  position: relative;
  z-index: 1;
}

/* SHOWCASE COLUMN */
.auth-showcase {
  min-height: 100vh;
  padding: clamp(40px, 6vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.auth-showcase::after {
  content: "";
  position: absolute;
  width: 1px;
  top: 10%;
  right: 0;
  bottom: 10%;
  background: linear-gradient(transparent, rgba(255, 196, 0, 0.28), transparent);
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--w-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.auth-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--w-gold), transparent);
  border-radius: 2px;
}

.auth-logo-box {
  display: inline-block;
  width: fit-content;
  max-width: min(540px, 92%);
  margin-bottom: 34px;
  padding: 16px 24px;
  background: #050608;
  border: 1px solid rgba(255, 196, 0, 0.22);
  border-radius: 14px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 35px rgba(255, 196, 0, 0.08);
}

.auth-logo-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 185px;
  object-fit: contain;
  filter: drop-shadow(0 14px 40px rgba(255, 196, 0, 0.18));
}

.auth-headline {
  margin: 0 0 16px 0;
  max-width: 740px;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: #ffffff;
}

.auth-headline .gold-gradient-text {
  background: linear-gradient(110deg, #fff7d1 0%, #ffd43f 45%, #ff9e00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.auth-desc {
  max-width: 620px;
  margin: 0 0 34px 0;
  color: #9ea3b0;
  line-height: 1.75;
  font-size: 14.5px;
  font-weight: 400;
}

.auth-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 660px;
}

.auth-point {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-point b {
  display: block;
  font-size: 14.5px;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 4px;
}

.auth-point span {
  display: block;
  font-size: 11.5px;
  color: #8b919e;
  line-height: 1.5;
}

/* ADMIN LOGIN CARD */
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 50px);
  min-height: 100vh;
}

.auth-card-main {
  width: min(460px, 100%);
  padding: clamp(32px, 4vw, 44px) clamp(28px, 4vw, 40px);
  border: 1px solid rgba(255, 196, 0, 0.30);
  border-radius: 26px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
    linear-gradient(180deg, rgba(14, 16, 21, 0.96) 0%, rgba(9, 10, 14, 0.98) 100%);
  box-shadow:
    0 35px 90px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 50px rgba(255, 196, 0, 0.07);
  backdrop-filter: blur(28px);
  position: relative;
  overflow: hidden;
}

.auth-card-main::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--w-gold-2), var(--w-gold), transparent);
  opacity: 0.95;
}

.auth-card-tag {
  display: inline-block;
  color: var(--w-gold);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.auth-card-title {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.auth-card-subtitle {
  color: var(--w-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 26px;
}

.auth-field {
  margin-bottom: 20px;
}

.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #d1d5db;
  margin-bottom: 8px;
}

.auth-input-box {
  width: 100%;
  height: 48px;
  background: rgba(6, 7, 10, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 0 16px;
  color: #ffffff;
  font-family: inherit;
  font-size: 14.5px;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.auth-input-box::placeholder {
  color: #4b5260;
  font-size: 14px;
}

.auth-input-box:focus {
  border-color: rgba(255, 196, 0, 0.7);
  background: rgba(8, 10, 14, 0.95);
  box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.12), inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.btn-auth-gold {
  width: 100%;
  height: 50px;
  margin-top: 10px;
  background: linear-gradient(135deg, #ffd84d 0%, #ffb800 48%, #e09200 100%);
  color: #120e03;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(255, 184, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.25s ease;
}

.btn-auth-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(255, 184, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

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

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

.auth-session-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: #717784;
  font-size: 12px;
  line-height: 1.5;
}

.auth-green-dot {
  width: 6.5px;
  height: 6.5px;
  background: var(--w-green);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
  flex-shrink: 0;
}

.auth-guest-sec {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-auth-guest {
  width: 100%;
  height: 42px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #e5e7eb;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-auth-guest:hover {
  background: rgba(255, 196, 0, 0.08);
  border-color: rgba(255, 196, 0, 0.4);
  color: #ffd84d;
}

.auth-sec-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #8b92a0;
  margin-top: 6px;
  padding: 0 4px;
}

.auth-sec-links a {
  color: #9ba1ae;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.auth-sec-links a:hover {
  color: var(--w-gold);
  text-decoration: underline;
}

/* Alert inside auth modal */
.auth-msg-alert {
  display: none;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 18px;
  line-height: 1.4;
}

.auth-msg-alert.error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.auth-msg-alert.success {
  display: block;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

/* Responsive */
@media (max-width: 1050px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-showcase {
    min-height: auto;
    padding: 50px 24px 20px;
    align-items: center;
    text-align: center;
  }
  .auth-showcase::after { display: none; }
  .auth-kicker::before { display: none; }
  .auth-desc { margin: 0 auto 28px; }
  .auth-points {
    grid-template-columns: 1fr;
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
  }
  .auth-panel {
    min-height: auto;
    padding: 24px 18px 60px;
  }
}

@media (max-width: 480px) {
  .auth-card-main {
    padding: 26px 20px;
    border-radius: 20px;
  }
  .auth-card-title { font-size: 23px; }
  .auth-headline { font-size: 29px; }
  .auth-logo-box { padding: 12px 18px; }
  .auth-close-floating { top: 14px; right: 14px; }
}
