/* ============================================================================
   email-login.css … 「メールでログイン」画面の見た目（担当: AuthEmail）
   共通の色や文字・入力欄の形は Shared の /static/shared/frame.css に任せ、ここは並びだけ。
   account-home.css と同じ作り（同じ幅・同じ角の丸み・同じ余白）にそろえてあります。

   本サイトとの対応:
     箱        … ガラスの板（.code-panel と同じ作り、角は --r-panel）
     ボタン    … .btn（丸い形・高さ 50px）。送る・確かめる は主役の色
     6 桁の欄  … 本サイトの部屋コードの鍵と同じ等幅の太字
   ============================================================================ */

.ae-card {
  max-width: 30rem;
  margin: clamp(8px, 3vw, 32px) auto 0;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--r-panel);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
  box-shadow: var(--glass-shadow);
}

@supports (corner-shape: squircle) {
  .ae-card {
    corner-shape: squircle;
  }
}

.ae-card h1 {
  margin: 0 0 10px;
}

.ae-intro {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  text-wrap: pretty;
}

.ae-form label {
  display: block;
  margin: 16px 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

/* 6 桁のコード。大きく・等幅・字間を空けて中央に */
#ae-code {
  min-height: 60px;
  font-family: var(--mono);
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 600;
  letter-spacing: .35em;
  text-align: center;
  text-indent: .35em;   /* 字間の分だけ右に寄るのを戻す */
  font-variant-numeric: tabular-nums;
}

.ae-turnstile {
  margin: 16px 0 4px;
  min-height: 65px;
}

.ae-btn {
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-c) var(--ease-c), background-color .2s var(--ease), color .2s var(--ease);
}

.ae-btn:disabled {
  cursor: default;
  opacity: .55;
}

/* 送る・確かめる。本サイトの主役のボタンと同じ形 */
.ae-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin-top: 16px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: var(--track-body);
  color: var(--on-accent);
  background: var(--btn-primary-bg);
  box-shadow: var(--btn-primary-shadow);
}

@media (hover: hover) {
  .ae-btn-primary:not(:disabled):hover {
    background: var(--btn-primary-hover-bg);
  }
}

.ae-btn-primary:active:not(:disabled) {
  transform: scale(.955);
}

/* もう一度送る・アドレスを変える。文字だけのリンク風 */
.ae-btn-link {
  padding: 8px 4px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

@media (hover: hover) {
  .ae-btn-link:not(:disabled):hover {
    text-decoration-thickness: 2px;
  }
}

.ae-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.ae-hint,
.ae-sent {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-3);
  text-wrap: pretty;
}

.ae-sent {
  margin: 0;
  font-size: 16px;
  color: var(--ink-2);
}

.ae-sent strong {
  color: var(--ink);
  word-break: break-all;
}

/* 手元で試している時だけ出る（本番では出ない） */
.ae-dev {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--gold-soft);
  border: 1px dashed var(--gold);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
}

.ae-dev code {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .2em;
  user-select: all;
}

/* 知らせ。ふつう・成功（青緑）・失敗（赤） */
.ae-msg {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--seg-bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
}

.ae-msg-ok {
  background: var(--accent-soft);
}

.ae-msg-error {
  background: var(--red-soft);
  color: var(--red);
  font-weight: 600;
}

.ae-other {
  margin: 20px 0 0;
  text-align: center;
  font-size: 15px;
}
