/* Login gate: dark hero shell (variant B + A illustration). Share/invite gates use styles.css only. */

.gate-login-page {
  margin: 0;
  min-height: 100dvh;
  color-scheme: dark;
  background: #0f1419;
  color: #e8ecf1;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.gate-login-shell {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  overflow: hidden;
}

.gate-login-hero {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(160deg, #0f1419 0%, #1a2332 42%, #0f172a 100%);
}

.gate-login-hero-glow {
  position: absolute;
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  top: 38%;
  left: 32%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28) 0%, transparent 68%);
}

.gate-login-hero-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.92;
}

.gate-login-main {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 100dvh;
  padding: 1.5rem var(--app-shell-inline-gap, 0.625rem);
  box-sizing: border-box;
}

.gate-login-card {
  width: 100%;
  max-width: 22rem;
  margin-left: auto;
  margin-right: clamp(0.5rem, 4vw, 2.5rem);
  padding: 1.35rem 1.25rem;
  border-radius: 10px;
  border: 1px solid #3d4a5d;
  background: rgba(26, 35, 50, 0.92);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

.gate-login-lead,
.gate-login-hint,
.gate-login-subtitle {
  font-size: 0.95rem;
  line-height: 1.4;
}

.gate-login-lead {
  margin: 0;
  color: #9aa8b8;
}

.gate-login-card h1 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: #e8ecf1;
}

.gate-login-hint {
  margin: 0 0 0.65rem;
  color: #9aa8b8;
}

.gate-login-subtitle {
  margin: 0 0 1rem;
  color: #9aa8b8;
}

.gate-login-page .gate-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.gate-login-page .gate-forms {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.gate-login-page .gate-forms form {
  width: 100%;
}

.gate-login-page .gate-forms .btn {
  width: 100%;
  box-sizing: border-box;
}

.gate-login-page .btn-primary {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}

.gate-login-page .btn-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
}

.gate-login-page .btn-secondary {
  background: #2d3a4d;
  border: 1px solid #4a5568;
  color: #e8ecf1;
}

.gate-login-page .btn-secondary:hover {
  background: #3d4a5d;
}

.gate-email-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.gate-email-form label {
  font-size: 0.85rem;
  color: #9aa8b8;
}

.gate-email-form input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  border: 1px solid #4a5568;
  background: #1a2332;
  color: #e8ecf1;
  font-size: 0.95rem;
}

.gate-email-form input[type="email"]:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 1px;
}

.gate-login-flash {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  font-size: 0.9rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #c7d7f0;
}

@media (max-width: 767px) {
  .gate-login-main {
    justify-content: center;
    padding: 1.25rem 0.75rem;
  }

  .gate-login-card {
    margin-left: auto;
    margin-right: auto;
    max-width: 20rem;
  }

  .gate-login-hero-img {
    opacity: 0.55;
  }

  .gate-login-hero-glow {
    left: 50%;
    top: 30%;
  }
}
