/* TNG League — auth login (Match day / Federation) */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=IBM+Plex+Sans:wght@400;500;600&family=Inter:wght@400;500;600&display=swap');

.auth-login {
  --auth-ink: #2c2c2a;
  --auth-muted: #5c5c58;
  --auth-primary: #0079da;
  --auth-primary-soft: #2e94e8;
  --auth-win: #f2c94c;
  --auth-surface: #ffffff;
  --auth-border: #e4e4de;
  --auth-pitch: #0e1a16;
  --auth-pitch-mid: #15241e;
  --auth-font-display: "Barlow Condensed", "Oswald", Impact, sans-serif;
  --auth-font-body: Inter, system-ui, sans-serif;

  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  box-sizing: border-box;
  font-family: var(--auth-font-body);
  color: var(--auth-ink);
  background: var(--auth-pitch);
  position: relative;
  overflow: hidden;
}

.auth-login--admin {
  --auth-font-body: "IBM Plex Sans", Inter, system-ui, sans-serif;
  --auth-border: #c8cdd4;
}

.auth-login__pitch {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 121, 218, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(242, 201, 76, 0.12), transparent 45%),
    linear-gradient(160deg, var(--auth-pitch) 0%, var(--auth-pitch-mid) 48%, #0a1411 100%);
}

.auth-login__pitch::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 47px,
      rgba(125, 222, 146, 0.07) 47px,
      rgba(125, 222, 146, 0.07) 48px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 47px,
      rgba(125, 222, 146, 0.07) 47px,
      rgba(125, 222, 146, 0.07) 48px
    );
}

.auth-login__pitch::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(72vmin, 420px);
  height: min(72vmin, 420px);
  transform: translate(-50%, -50%);
  border: 2px solid rgba(250, 250, 247, 0.08);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(250, 250, 247, 0.04);
}

.auth-login__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: var(--auth-surface);
  border: 1px solid var(--auth-border);
  border-radius: 6px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  animation: auth-login-in 0.45s ease-out both;
}

.auth-login__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--auth-primary);
  border-radius: 6px 6px 0 0;
}

.auth-login--portal .auth-login__accent {
  background: linear-gradient(90deg, var(--auth-primary) 0%, var(--auth-primary) 62%, var(--auth-win) 62%, var(--auth-win) 100%);
}

.auth-login__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.auth-login__logo {
  flex-shrink: 0;
  height: 38px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  background: #ffffff;
  padding: 3px 6px;
  border: 1px solid var(--auth-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.auth-login__crest {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid var(--auth-primary);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), transparent 45%),
    linear-gradient(145deg, var(--auth-primary) 0%, #0057a8 100%);
  color: #fafaf7;
  display: grid;
  place-items: center;
  font-family: var(--auth-font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.auth-login--portal .auth-login__crest {
  box-shadow: 0 0 0 3px rgba(242, 201, 76, 0.35);
}

.auth-login__brand-text {
  min-width: 0;
}

.auth-login__brand-name {
  margin: 0;
  font-family: var(--auth-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--auth-ink);
  text-transform: uppercase;
}

.auth-login__brand-sub {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--auth-muted);
  letter-spacing: 0.02em;
}

.auth-login__eyebrow {
  display: inline-block;
  margin: 0 0 0.35rem;
  padding: 0.15rem 0.45rem;
  font-family: var(--auth-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--auth-primary);
  background: rgba(0, 121, 218, 0.1);
  border-radius: 2px;
}

.auth-login--portal .auth-login__eyebrow {
  color: #8a6d00;
  background: rgba(242, 201, 76, 0.28);
}

.auth-login__title {
  margin: 0 0 1.25rem;
  font-family: var(--auth-font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--auth-ink);
}

.auth-login__field {
  margin-bottom: 1rem;
}

.auth-login__field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--auth-muted);
  letter-spacing: 0.02em;
}

.auth-login__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-login__input-icon {
  position: absolute;
  left: 0.75rem;
  color: var(--auth-muted);
  font-size: 1.15rem !important;
  pointer-events: none;
  display: flex;
  align-items: center;
  user-select: none;
}

.auth-login__field input[type="text"],
.auth-login__field input[type="password"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--auth-border);
  border-radius: 6px;
  background: #fafaf7;
  color: var(--auth-ink);
  font-size: 0.9375rem;
  font-family: inherit;
  line-height: 1.35;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  box-shadow: none !important;
}

.auth-login__input-wrap input[type="text"],
.auth-login__input-wrap input[type="password"] {
  padding-left: 2.35rem;
  padding-right: 2.35rem;
}

.auth-login__toggle-pass {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--auth-muted);
  cursor: pointer;
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  line-height: 1;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.auth-login__toggle-pass:hover {
  color: var(--auth-primary);
  background: rgba(0, 121, 218, 0.08);
}

.auth-login__toggle-pass .material-icons {
  font-size: 1.15rem;
}

.auth-login__field input:focus {
  outline: none;
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 2px rgba(0, 121, 218, 0.2) !important;
  background: #fff;
}

.auth-login__field .field-validation-error,
.auth-login__field .red-text {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: var(--auth-warn, #c0392b);
}

.auth-login__remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0 1rem;
  cursor: pointer;
  user-select: none;
}

.auth-login__remember input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--auth-primary);
  cursor: pointer;
}

.auth-login__remember span {
  font-size: 0.875rem;
  color: var(--auth-ink);
  font-weight: 500;
}

.auth-login__error {
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(192, 57, 43, 0.35);
  border-radius: 6px;
  background: rgba(192, 57, 43, 0.08);
  color: #8e2a1f;
  font-size: 0.8125rem;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.auth-login__error .material-icons {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.auth-login__error ul {
  margin: 0;
  padding-left: 1.1rem;
}

.auth-login__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  margin: 0;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 6px;
  background: var(--auth-primary);
  color: #fafaf7;
  font-family: var(--auth-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-login__submit:hover {
  background: var(--auth-primary-soft);
  box-shadow: 0 4px 12px rgba(0, 121, 218, 0.25);
}

.auth-login__submit:active {
  transform: translateY(1px);
}

.auth-login__submit .material-icons {
  font-size: 1.15rem;
}

/* Bottom Actions & Navigation */
.auth-login__actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--auth-border);
}

.auth-login__nav-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.auth-login__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--auth-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.auth-login__link:hover {
  color: var(--auth-primary);
}

.auth-login__link .material-icons {
  font-size: 1rem;
}

.auth-login__link--accent {
  color: var(--auth-primary);
  font-weight: 600;
}

.auth-login__link--accent:hover {
  color: var(--auth-primary-soft);
  text-decoration: underline;
}

.auth-login__foot {
  margin: 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--auth-muted);
  letter-spacing: 0.01em;
}

@keyframes auth-login-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-login__panel {
    animation: none;
  }

  .auth-login__submit {
    transition: none;
  }
}

@media (max-width: 480px) {
  .auth-login {
    padding: 1rem;
    align-items: stretch;
  }

  .auth-login__panel {
    margin: auto 0;
    padding: 1.5rem 1.15rem 1.25rem;
  }

  .auth-login__title {
    font-size: 1.5rem;
  }

  .auth-login__nav-links {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }
}

