/* LigaPlus auth — dark sports login matching landing theme */
.auth-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Montserrat", system-ui, sans-serif;
  color: #fff;
  background: #070B12;
}

.auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .auth-shell {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

/* ===== VISUAL SIDE ===== */
.auth-visual {
  position: relative;
  min-height: 42vh;
  padding: 1.4rem 1.4rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  overflow: visible;
}

@media (min-width: 960px) {
  .auth-visual {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 2rem 2.5rem 2.25rem;
    overflow: hidden;
  }
}

.auth-visual-bg {
  position: absolute;
  inset: 0;
  background-image: var(--auth-hero);
  background-size: cover;
  background-position: center 20%;
  transform: scale(1.04);
  animation: auth-drift 18s ease-in-out infinite alternate;
}

.auth-visual-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(7,11,18,0.88) 0%, rgba(7,11,18,0.55) 48%, rgba(7,11,18,0.35) 100%),
    linear-gradient(to top, rgba(7,11,18,0.92) 0%, rgba(7,11,18,0.2) 45%, rgba(7,11,18,0.35) 100%);
}

.auth-visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42,175,61,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,175,61,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to top, transparent, #000 40%);
  pointer-events: none;
}

.auth-brand,
.auth-visual-copy,
.auth-visual-foot {
  position: relative;
  z-index: 2;
}

.auth-visual-copy {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
  width: fit-content;
  flex-shrink: 0;
}

.auth-brand-mark {
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 12px rgba(42,175,61,0.35));
}

.auth-brand-name {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 1.85rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.85rem;
  color: #E2B93B;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.auth-eyebrow span {
  width: 28px;
  height: 2px;
  background: #E2B93B;
}

.auth-headline {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 4.4rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  flex-shrink: 1;
}

.auth-line-white { display: block; color: #fff; }
.auth-line-grad {
  display: block;
  background: linear-gradient(90deg, #2aaf3d 0%, #E2B93B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-lead {
  display: block;
  margin: 1rem 0 0;
  max-width: 28rem;
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 500;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.auth-visual-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.auth-visual-foot span {
  border: 1px solid rgba(42,175,61,0.4);
  color: #2aaf3d;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(42,175,61,0.08);
}

/* ===== FORM PANEL ===== */
.auth-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1.25rem 2rem;
  background:
    radial-gradient(ellipse 70% 50% at 80% 0%, rgba(42,175,61,0.12), transparent 55%),
    #0a1018;
  border-top: 1px solid rgba(255,255,255,0.06);
}

@media (min-width: 960px) {
  .auth-panel {
    border-top: 0;
    border-left: 1px solid rgba(255,255,255,0.06);
    padding: 2.5rem;
  }
}

.auth-panel-inner {
  width: min(100%, 400px);
}

.auth-panel-kicker {
  margin: 0 0 0.45rem;
  color: #E2B93B;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.auth-panel-title {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(2.1rem, 4vw, 2.7rem);
  letter-spacing: 0.03em;
  color: #fff;
  line-height: 1;
}

.auth-panel-sub {
  margin: 0.65rem 0 0;
  color: rgba(255,255,255,0.58);
  font-size: 0.9rem;
  line-height: 1.5;
}

.auth-form {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.95rem;
}

.auth-field {
  display: grid;
  gap: 0.4rem;
}

.auth-field > span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

.auth-field input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(7,11,18,0.75);
  color: #fff;
  border-radius: 12px;
  padding: 0.95rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input::placeholder { color: rgba(255,255,255,0.28); }

.auth-field input:focus {
  border-color: rgba(42,175,61,0.65);
  box-shadow: 0 0 0 3px rgba(42,175,61,0.15);
}

.auth-pass-wrap {
  position: relative;
}

.auth-pass-wrap input { padding-right: 4.2rem; }

.auth-pass-toggle {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #E2B93B;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 0.35rem 0.45rem;
}

.auth-submit {
  margin-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #2aaf3d;
  color: #04140c;
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 1rem 1.15rem;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.auth-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.auth-back {
  display: inline-block;
  margin-top: 1.15rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

.auth-back:hover { color: #E2B93B; }

.auth-demo {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.auth-demo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.35rem;
}

.auth-demo-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.auth-demo-pass {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.42);
}

.auth-demo-pass code {
  color: #2aaf3d;
  font-family: inherit;
  font-weight: 800;
}

.auth-demo-hint {
  margin: 0 0 0.75rem;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.4;
}

.auth-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  max-height: min(42vh, 340px);
  overflow: auto;
  padding-right: 0.15rem;
}

.auth-demo-chip {
  display: grid;
  gap: 0.12rem;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.72);
  border-radius: 12px;
  padding: 0.65rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  animation: auth-demo-in 0.35s ease both;
  animation-delay: calc(var(--demo-i, 0) * 0.04s);
}

@keyframes auth-demo-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.auth-demo-chip:hover {
  border-color: rgba(42,175,61,0.45);
  background: rgba(42,175,61,0.1);
  color: #fff;
  transform: translateY(-1px);
}

.auth-demo-chip.is-selected {
  border-color: rgba(42,175,61,0.65);
  background: rgba(42,175,61,0.16);
  box-shadow: inset 0 0 0 1px rgba(42,175,61,0.25);
}

.auth-demo-chip-role {
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.auth-demo-chip-mail {
  font-size: 0.66rem;
  color: #2aaf3d;
  word-break: break-all;
}

.auth-demo-chip-desc {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255,255,255,0.42);
  line-height: 1.3;
}

@media (max-width: 520px) {
  .auth-demo-grid {
    grid-template-columns: 1fr;
    max-height: none;
  }
}

/* Flash on dark auth */
.auth-body .flash {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  width: min(92vw, 420px);
  margin: 0;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.auth-body .flash-success {
  background: rgba(12, 40, 24, 0.92);
  color: #9dffb0;
  border-color: rgba(42,175,61,0.45);
}
.auth-body .flash-error {
  background: rgba(48, 16, 16, 0.92);
  color: #ffb4b4;
  border-color: rgba(220, 80, 80, 0.45);
}

@keyframes auth-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, 1%, 0); }
}

@keyframes auth-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.anim-auth {
  animation: auth-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.anim-auth.delay-1 { animation-delay: 0.12s; }
.anim-auth.delay-2 { animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .auth-visual-bg { animation: none; }
  .anim-auth { animation: none; opacity: 1; transform: none; }
}
