/* ファイルパス: public/css/auth.css */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 520px);
  background: #f7f8fc;
}

.auth-hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 46px clamp(34px, 6vw, 88px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(217, 222, 240, 0.8);
  background:
    radial-gradient(circle at 20% 18%, rgba(79, 70, 229, 0.10), transparent 24rem),
    linear-gradient(145deg, #ffffff 0%, #f7f8fd 72%, #f1f3fb 100%);
}

.auth-hero::after {
  content: "B2";
  position: absolute;
  right: clamp(-34px, -2vw, 10px);
  bottom: clamp(18px, 5vh, 70px);
  color: rgba(79, 70, 229, 0.035);
  font-size: clamp(180px, 28vw, 420px);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.10em;
  pointer-events: none;
  user-select: none;
}

.auth-product {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: 72px 0 96px;
}

.auth-product-label {
  display: block;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.auth-product h1 {
  margin: 0;
  color: #172033;
  font-size: clamp(48px, 7vw, 82px);
  line-height: 1;
  letter-spacing: -0.065em;
}

.auth-module-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.auth-module-list span {
  min-height: 34px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(71, 84, 103, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #475467;
  font-size: 12px;
  font-weight: 750;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.auth-footnote {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.auth-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px;
  background: #fff;
}

.auth-card {
  width: min(100%, 430px);
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.auth-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}

.auth-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
}

.auth-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-card h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.auth-card-head p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.auth-card .form-field + .form-field {
  margin-top: 17px;
}

.auth-error {
  margin-top: 16px;
  padding: 11px 12px;
  border: 1px solid #fecaca;
  border-radius: 11px;
  background: var(--danger-soft);
  color: #b42318;
  font-size: 12px;
  font-weight: 700;
}

.auth-submit {
  width: 100%;
  margin-top: 22px;
}

.auth-submit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
    min-height: 100svh;
    background: #fff;
  }

  .auth-hero {
    min-height: auto;
    padding: 24px 20px 12px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    background: #fff;
  }

  .auth-hero::after,
  .auth-product,
  .auth-footnote {
    display: none;
  }

  .auth-panel {
    min-height: auto;
    place-items: start center;
    padding: 28px 18px 44px;
  }

  .auth-card {
    padding: 26px 22px;
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
  }
}
