.login-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem 2.5rem;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 20%, rgba(191, 0, 255, 0.22), transparent 32%),
    radial-gradient(circle at 80% 80%, rgba(0, 191, 255, 0.18), transparent 36%),
    #050505;
}

#publicHeader {
  width: 100%;
}

.login-card {
  width: min(440px, 100%);
  padding: 2rem 1.5rem 1.4rem;
  text-align: center;
  position: relative;
  margin: 2.4rem auto 0;
  color: #ffffff;
  background: rgba(12, 12, 20, 0.92);
  border: 1px solid rgba(191, 0, 255, 0.35);
}

.login-logo {
  width: 168px;
  height: 168px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(191, 0, 255, 0.4), 0 0 40px rgba(0, 191, 255, 0.25);
  animation: pulse-ring 3.2s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 1px rgba(191, 0, 255, 0.4), 0 0 32px rgba(0, 191, 255, 0.22); }
  50% { box-shadow: 0 0 0 4px rgba(191, 0, 255, 0.18), 0 0 48px rgba(0, 191, 255, 0.38); }
}

.login-card h1 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.login-form {
  display: grid;
  gap: 0.85rem;
  text-align: left;
  margin-top: 1.3rem;
}

.login-error {
  min-height: 1.2rem;
  color: #ff8aa0;
  font-size: 0.9rem;
}

.login-file-hint {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 191, 255, 0.35);
  background: rgba(0, 191, 255, 0.08);
  color: #dcefff;
  font-size: 0.86rem;
  line-height: 1.4;
}

.login-file-hint code {
  color: var(--protv-cyan);
}

.btn-skip {
  width: 100%;
  border: 1px dashed rgba(0, 191, 255, 0.45);
  color: var(--protv-cyan);
  background: rgba(0, 191, 255, 0.08);
}

.ig-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ig-link:hover {
  color: var(--protv-cyan);
}

.login-support-wrap {
  margin-top: 1rem;
  text-align: center;
}

.login-support {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 211, 102, 0.35);
  background: rgba(37, 211, 102, 0.08);
  color: #7dffb8;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.login-support:hover {
  color: #b8ffd4;
  border-color: rgba(37, 211, 102, 0.55);
  box-shadow: 0 0 16px rgba(37, 211, 102, 0.18);
  transform: translateY(-1px);
}

.login-support::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-1.9 5.4 8.5 8.5 0 0 1-6.6 3.1 8.4 8.4 0 0 1-3.9-1L3 21l1.9-5.6a8.4 8.4 0 0 1-1.9-5.4 8.5 8.5 0 0 1 3.1-6.6A8.4 8.4 0 0 1 12.5 3 8.5 8.5 0 0 1 21 11.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-1.9 5.4 8.5 8.5 0 0 1-6.6 3.1 8.4 8.4 0 0 1-3.9-1L3 21l1.9-5.6a8.4 8.4 0 0 1-1.9-5.4 8.5 8.5 0 0 1 3.1-6.6A8.4 8.4 0 0 1 12.5 3 8.5 8.5 0 0 1 21 11.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.demo-gate {
  margin-top: 1.1rem;
  text-align: center;
}

.demo-gate h2 {
  margin: 0.2rem 0 0.4rem;
}

.demo-teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 1rem 0;
}

.demo-team {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  padding: 0.85rem 0.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
}

.demo-team img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.login-card:has(#demoGate:not(.hidden)) {
  width: min(560px, 100%);
}

.signup-type-field {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 1rem 1rem;
  margin: 0 0 1rem;
  text-align: left;
}

.signup-type-legend {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 0.35rem;
}

.signup-type-opt {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0;
  cursor: pointer;
}

.signup-type-opt span {
  display: grid;
  gap: 0.15rem;
}

.signup-type-opt em {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
}

.signup-invite-banner {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--team-primary, #bf00ff) 35%, transparent);
  background: rgba(191, 0, 255, 0.08);
  text-align: left;
  font-size: 0.92rem;
}

.player-team-head {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.player-team-head img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
}

.player-invite-box {
  margin-bottom: 1rem;
}
