/* ============================================
   style-register.css
   Project MIRROR - Register Page
   縦密度最適化・SP安定・ボタン密着版
============================================ */

/* ===============================
   Variables
=============================== */
:root {
  --bg: #ffffff;
  --card-bg: #ffffff;
  --text: #000000;
  --text-sub: #555555;
  --border: #000000;
}

html.dark {
  --bg: #242424;
  --card-bg: #2a2a2a;
  --text: #ffffff;
  --text-sub: #cccccc;
  --border: #dddddd;
}

/* ===============================
   Base
=============================== */
html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ===============================
   Page Layout
=============================== */
#register-page {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;

  padding: 14px 14px 64px;
  box-sizing: border-box;

  overflow-y: auto;
}

/* ===============================
   Card
=============================== */
.register-card {
  width: 100%;
  max-width: 420px;

  margin-top: 20px;
  background: var(--card-bg);
  padding: 18px 16px;
  border-radius: 12px;

  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  box-sizing: border-box;
}

/* ===============================
   Title
=============================== */
.register-title {
  margin: 0 0 12px;
  font-size: 17px;
  text-align: center;
}

/* ===============================
   Form
=============================== */
#signupForm {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#signupForm label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  line-height: 1.15;
}

#signupForm label span {
  line-height: 1.1;
}

#signupForm input,
#signupForm textarea {
  font-size: 14px;
  padding: 6px 8px;

  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);

  box-sizing: border-box;
}

#signupForm textarea {
  resize: vertical;
  min-height: 52px;
}

/* ===============================
   利用規約への同意（FIX）
=============================== */
#signupForm label.terms-agree {
  display: flex;            /* ← column を上書き */
  flex-direction: row;      /* ← 横並びに戻す */
  align-items: center;
  gap: 6px;

  margin-top: 6px;
  font-size: 11px;
  line-height: 1.35;

  color: var(--text-sub);
}

#signupForm label.terms-agree input[type="checkbox"] {
  margin: 0;                /* ← label由来のズレ防止 */
  flex-shrink: 0;
}

#signupForm label.terms-agree span {
  line-height: 1.35;
}

#signupForm label.terms-agree a {
  color: var(--text);
  text-decoration: underline;
}
/* ===============================
   Button（主動線）
=============================== */
.btn-primary {
  margin-top: 4px;
  margin-bottom: 2px;
  height: 34px;

  border-radius: 8px;
  border: none;
  background: var(--text);
  color: var(--bg);

  font-size: 14px;
  cursor: pointer;
}

/* ===============================
   Message
=============================== */
.form-message {
  margin-top: 2px;
  margin-bottom: 0;
  min-height: 1em;
  font-size: 12px;
  text-align: center;
  line-height: 1.25;
}

/* ===============================
   Auth Footer（副動線・密着）
=============================== */
.auth-footer {
  margin-top: 2px;
  text-align: center;
  font-size: 11px;
  line-height: 1.1;
  opacity: 0.85;
}

.auth-footer a {
  color: var(--text);
  text-decoration: underline;
  display: inline;
}
