/* /src/css/register/register.css */

/* ✅ registerページだけに適用 */
body.register-page{
  /* 背景はサイトのままでもOK（必要なら調整） */
}

/* ページ中央寄せ（任意：フォームを真ん中に置く） */
body.register-page .tt-register{
  min-height: calc(100vh - 90px); /* sticky header想定 */
  display: grid;
  place-items: center;
  padding: 70px 0 90px;
}

body.register-page .tt-register__inner{
  width: var(--container);
  margin: 0 auto;
  display: grid;
  justify-items: center;
}

/* ===== Register Head ===== */
.tt-auth-head{
  width: min(92vw, 620px);
  text-align: center;
  margin: 0 auto 14px;
}

.tt-auth-head__kicker{
  margin: 0 0 6px;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(44, 44, 44, 0.88);
  text-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.tt-auth-head__title{
  margin: 0;
  font-family: "IBM Plex Sans JP", system-ui, -apple-system, "Noto Sans JP", "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 3.2vw, 40px);
  color: #000000;
  text-shadow: 0 14px 34px rgba(0,0,0,.22);
}

/* PCだけもう少し余白を */
@media (min-width: 901px){
  .tt-auth-head{
    margin-bottom: 18px;
  }
}

/* form（成功画面も同じカードで使う） */
body.register-page .tt-register .form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(45deg, skyblue, darkblue);
  padding: 30px;
  width: 650px;
  border-radius: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  transition: background 0.3s ease;
}

body.register-page .tt-register .form:hover {
  background: linear-gradient(45deg, darkblue, skyblue);
}

body.register-page .tt-register ::placeholder {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

/* ✅ submitだけを右寄せ対象に（Googleボタンまで巻き込まない） */
body.register-page .tt-register .button-submit{
  align-self: flex-end;
}

/* labels */
body.register-page .tt-register .flex-column > label {
  color: white;
  font-weight: 600;
}

/* input wrap */
body.register-page .tt-register .inputForm {
  border: 1.5px solid #ecedec;
  border-radius: 10em;
  height: 50px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  transition: 0.2s ease-in-out;
  background-color: white;
  gap: 8px;
}

body.register-page .tt-register .inputForm svg{
  flex: 0 0 auto;
}

body.register-page .tt-register .input {
  margin-left: 0;
  border-radius: 10rem;
  border: none;
  width: 100%;
  height: 100%;
}

body.register-page .tt-register .input:focus {
  outline: none;
}

body.register-page .tt-register .inputForm:focus-within {
  border: 1.5px solid orange;
}

/* rows */
body.register-page .tt-register .flex-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

body.register-page .tt-register .span {
  font-size: 14px;
  margin-left: 5px;
  color: white;
  font-weight: 500;
  cursor: pointer;
}

/* submit */
body.register-page .tt-register .button-submit {
  position: relative;
  display: inline-block;
  padding: 15px 30px;
  text-align: center;
  letter-spacing: 1px;
  text-decoration: none;
  background: transparent;
  transition: ease-out 0.5s;
  border: 2px solid;
  border-radius: 10em;
  box-shadow: inset 0 0 0 0 blue;
  margin: 20px 0 10px 0;
  color: white;
  font-size: 15px;
  font-weight: 500;
  height: 50px;
  width: 100%;
  cursor: pointer;
}

body.register-page .tt-register .button-submit:hover {
  color: white;
  box-shadow: inset 0 -100px 0 0 royalblue;
}

body.register-page .tt-register .button-submit:active {
  transform: scale(0.9);
}

/* text */
body.register-page .tt-register .p {
  text-align: center;
  color: white;
  font-size: 14px;
  margin: 5px 0;
}

/* ✅ 「または」区切り */
body.register-page .tt-register .p.line{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 6px;
  opacity: .95;
}

body.register-page .tt-register .p.line::before,
body.register-page .tt-register .p.line::after{
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.55);
}

/* oauth buttons（※ヘッダーの .btn に当てない） */
body.register-page .tt-register .btn {
  margin-top: 10px;
  width: 100%;
  height: 50px;
  border-radius: 10em;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  gap: 10px;
  border: 1px solid #ededef;
  background-color: white;
  cursor: pointer;
  transition: 0.2s ease-in-out;
  text-decoration: none;
  color: #111;
}

body.register-page .tt-register .btn:hover {
  border: 1px solid orange;
}

/* ✅ Googleボタン（単独）を中央に */
body.register-page .tt-register .flex-row.oauth{
  justify-content: center;
  gap: 0;
}

body.register-page .tt-register .flex-row.oauth .btn{
  margin-top: 0;
  width: min(420px, 100%);
}

body.register-page .tt-register .btn svg{
  flex: 0 0 auto;
}

body.register-page .tt-register .btn.google{
  justify-content: center;
}

/* ------------------------------
   ✅ 追加：フィールド下エラー/ヘルプ
------------------------------ */
body.register-page .tt-register .tt-field-help{
  margin: 4px 4px 2px;
  font-size: 12px;
  color: rgba(255,255,255,.9);
}

body.register-page .tt-register .tt-field-error{
  margin: 4px 4px 2px;
  font-size: 12px;
  color: rgba(255, 90, 90, .98);
  font-weight: 700;
}

body.register-page .tt-register .tt-field-error-list{
  margin: 4px 0 0;
  padding-left: 18px;
}

body.register-page .tt-register .tt-field-error-list .tt-field-error{
  margin: 2px 0;
}

/* フォーム下部の一般エラー */
body.register-page .tt-register .tt-form-error{
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 90, 90, .55);
  background: rgba(255, 90, 90, .10);
  color: rgba(255, 240, 240, .95);
}

body.register-page .tt-register .tt-form-error p{
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

/* ------------------------------
   ✅ 追加：仮登録完了カード（成功/失敗）
------------------------------ */
body.register-page .tt-register .tt-status-card{
  text-align: center;
}

body.register-page .tt-register .tt-status-title{
  margin: 0 0 8px;
  color: white;
  font-weight: 900;
  font-size: 20px;
}

body.register-page .tt-register .tt-status-title--danger{
  color: rgba(255, 210, 210, .98);
}

body.register-page .tt-register .tt-status-text{
  margin: 0 0 12px;
  color: rgba(255,255,255,.92);
  font-size: 14px;
  line-height: 1.7;
}

body.register-page .tt-register .tt-status-list{
  margin: 0 0 10px;
  padding-left: 18px;
  color: rgba(255,255,255,.9);
  font-size: 13px;
  text-align: left;
}

body.register-page .tt-register .tt-status-actions{
  margin-top: 8px;
}

body.register-page .tt-register .tt-status-link{
  color: rgba(255,255,255,.95);
  font-weight: 800;
  text-decoration: underline;
}

/* ------------------------------
   ✅ レスポンシブ
------------------------------ */
@media (max-width: 520px){
  body.register-page .tt-register .form{
    width: min(450px, 92vw);
    padding: 22px;
    border-radius: 18px;
  }

  body.register-page .tt-register .flex-row{
    flex-wrap: wrap;
    justify-content: center;
  }

  body.register-page .tt-register .flex-row.oauth{
    flex-direction: column;
    align-items: stretch;
  }

  body.register-page .tt-register .flex-row.oauth .btn{
    width: 100%;
  }
}
