:root {
  --card: var(--surface, #ffffff);
  --border: var(--line, #e5e7eb);
  --accent-hover: #0f766e;
  --accent-soft: rgba(13, 148, 136, 0.08);
  --ink-soft: #374151;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Helvetica Neue", Arial, sans-serif;
}

.hidden {
  display: none !important;
}

.operator-gate {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  overflow-x: hidden;
}

.operator-gate-shell {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  width: 100%;
  min-width: 0;
  min-height: 100dvh;
}

.operator-gate-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 56px;
  background:
    radial-gradient(900px 480px at 12% 0%, rgba(13, 148, 136, 0.16), transparent 60%),
    radial-gradient(700px 420px at 90% 100%, rgba(99, 102, 241, 0.10), transparent 65%),
    linear-gradient(150deg, #0f172a 0%, #134e4a 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.operator-gate-brand-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.operator-gate-mark {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.operator-gate-wordmark {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.operator-gate-pitch {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 440px;
  min-width: 0;
  margin-top: 80px;
}

.operator-gate-pitch h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

.operator-gate-pitch p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  font-size: 0.96rem;
}

.operator-gate-features {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.operator-gate-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
}

.operator-gate-feature span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.operator-gate-feature svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #5eead4;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.operator-gate-foot {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.operator-gate-form-area {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 48px 32px;
}

.operator-gate-card {
  width: 100%;
  max-width: 420px;
  min-width: 0;
  padding: 32px 28px;
  display: grid;
  gap: 18px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: none;
}

.operator-gate-card h1 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: 0;
}

.operator-gate-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.operator-gate .field {
  display: grid;
  gap: 6px;
}

.operator-gate label {
  color: #26364f;
  font-size: 13px;
  font-weight: 800;
}

.operator-gate input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cbd7e6;
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.operator-gate input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.13);
}

.field-password {
  position: relative;
}

.field-password input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 160ms;
}

.password-toggle:hover {
  color: var(--ink);
  background: transparent;
}

.password-toggle .icon-eye-off,
.password-toggle.is-visible .icon-eye {
  display: none;
}

.password-toggle.is-visible .icon-eye-off {
  display: block;
}

.operator-gate-actions {
  display: flex;
  gap: 10px;
}

.operator-gate-actions .btn {
  width: 100%;
}

.operator-gate .btn {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  background: var(--accent);
  font-weight: 800;
  cursor: pointer;
}

.operator-gate .btn:hover {
  background: var(--accent-hover);
}

.operator-gate .btn:disabled {
  opacity: 0.62;
  cursor: wait;
}

.inline-error {
  border: 1px solid #ffd2cf;
  border-radius: var(--radius-sm);
  color: var(--danger);
  background: #fff1f0;
  padding: 10px 12px;
  font-size: 0.86rem;
  line-height: 1.6;
}

.inline-error:empty {
  display: none;
}

@media (max-width: 880px) {
  .operator-gate-shell {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .operator-gate-shell {
    grid-template-columns: 1fr;
  }

  .operator-gate-brand {
    width: 100%;
    max-width: 100vw;
    padding: 32px 24px;
    min-height: auto;
  }

  .operator-gate-pitch {
    max-width: 342px;
    margin-top: 32px;
  }

  .operator-gate-pitch h2 {
    font-size: 1.5rem;
  }

  .operator-gate-form-area {
    width: 100%;
    max-width: 100vw;
    justify-items: start;
    padding: 32px 20px;
  }

  .operator-gate-card {
    max-width: 350px;
  }
}
