/* ログイン専用 */
.recaptcha-wrap {
  display: flex;
  justify-content: center;
}

/* アラート */
.alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  background: rgba(239,68,68,.10);
  border: 1px solid rgba(239,68,68,.25);
  color: #991b1b;
  margin-bottom: 12px;
  line-height: 1.6;
}
.alert--locked {
  background: rgba(239,68,68,.14);
  border-color: rgba(239,68,68,.40);
}
.auth__form--locked {
  opacity: .4;
  pointer-events: none;
  user-select: none;
}

.auth {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 16px;
  min-height: calc(100vh - 88px);
  align-items: stretch;
}

.auth__panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  backdrop-filter: blur(12px);
}

.auth__head { margin-bottom: 14px; }
.auth__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
}
.auth__title { margin: 0; font-size: 22px; }
.auth__sub { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.auth__form { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 12px; color: var(--muted); }

.password { position: relative; display: flex; align-items: center; }
.password input { width: 100%; padding-right: 84px; }
.password__toggle {
  position: absolute; right: 8px;
  height: 32px; padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.8);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
}
.password__toggle:hover { filter: brightness(1.05); }

.auth__foot {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.sep { opacity: .6; }

/* ===== ヒーローエリア（マトリックス背景） ===== */
.auth__hero {
  background: #0a0f0a;
  border: 1px solid rgba(0,255,65,.15);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  position: relative;
  overflow: hidden;
}

#matrix-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero__inner {
  max-width: 640px;
  margin: auto 0;
  position: relative;
  z-index: 2;
}
.hero__title {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  color: #e0ffe4;
  text-shadow: 0 0 20px rgba(0,255,65,.4);
}
.hero__desc {
  margin: 10px 0 0;
  color: rgba(0,255,65,.6);
}

@media (prefers-reduced-motion: reduce) {
  #matrix-canvas { display: none; }
}

@media (max-width: 980px) {
  .auth { grid-template-columns: 1fr; }
  .auth__hero { display: none; }
}

@media (max-width: 600px) {
  input[type="text"],
  input[type="password"],
  input[type="email"] {
    font-size: 16px;
    min-height: 44px;
  }
  .password__toggle {
    height: 44px;
    padding: 0 12px;
  }
  .password input { padding-right: 96px; }
}
