/* /src/css/login/login.css */

/* ✅ loginページだけに適用 */
body.login-page{
  /* 背景はサイトのままでもOK */
}

/* ページ中央寄せ（registerと揃える） */
body.login-page .tt-login{
  min-height: calc(100vh - 90px); /* sticky header想定 */
  display: grid;
  place-items: center;
  padding: 70px 0 90px;
}

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

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

body.login-page .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);
}

body.login-page .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);
}

@media (min-width: 901px){
  body.login-page .tt-auth-head{
    margin-bottom: 18px;
  }
}

/* ===== form（registerと同じ） ===== */
body.login-page .tt-login .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.login-page .tt-login .form:hover{
  background: linear-gradient(45deg, darkblue, skyblue);
}

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

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

/* input wrap */
body.login-page .tt-login .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.login-page .tt-login .inputForm svg{
  flex: 0 0 auto;
}

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

/* ✅ エラー時の赤枠 */
body.login-page .tt-login .inputForm.is-error{
  border-color: rgba(255, 80, 80, .9);
  box-shadow: 0 0 0 3px rgba(255, 80, 80, .18);
}

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

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

/* ✅ フィールド直下の赤エラー（registerと同じノリ） */
body.login-page .tt-login .tt-field-error{
  margin: -2px 0 6px;
  padding-left: 6px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 235, 235, .98);
  text-shadow: 0 10px 22px rgba(0,0,0,.25);
}

/* submit */
body.login-page .tt-login .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.login-page .tt-login .button-submit:hover{
  color: white;
  box-shadow: inset 0 -100px 0 0 royalblue;
}

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

/* ✅ フォーム全体エラー（ボタンの下に赤い箱） */
body.login-page .tt-login .tt-form-error{
  margin-top: 8px;
  border: 1px solid rgba(255, 80, 80, .55);
  background: rgba(255, 80, 80, .14);
  border-radius: 14px;
  padding: 12px 12px;
  color: rgba(255, 235, 235, .98);
  font-weight: 800;
  line-height: 1.6;
}

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

body.login-page .tt-login .span{
  font-size: 14px;
  margin-left: 5px;
  color: white;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
}

/* ==========================
   ✅ 追加：registerと同じ
   「または」区切り & Googleボタン
========================== */

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

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

/* oauth行 */
body.login-page .tt-login .flex-row.oauth{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-top: 2px;
}

/* ✅ ヘッダーの .btn に当てない：tt-login内だけ */
body.login-page .tt-login .btn{
  width: min(420px, 100%);
  height: 50px;
  border-radius: 10em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 1px solid #ededef;
  background-color: white;
  cursor: pointer;
  transition: 0.2s ease-in-out;
  text-decoration: none;
  color: #111;
  font-weight: 500;
}

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

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

/* responsive */
@media (max-width: 520px){
  body.login-page .tt-login .form{
    width: min(450px, 92vw);
    padding: 22px;
    border-radius: 18px;
  }

  body.login-page .tt-login .btn{
    width: 100%;
  }
}
