/* 会員認証画面: ログイン・新規登録・パスワード再設定・ログアウト共通 */
.ec-auth {
  box-sizing: border-box;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 96px;
  color: #1c1c1c;
  font-size: 15px;
  line-height: 1.75;
}

.ec-auth__eyebrow {
  margin: 0 0 12px;
  color: #777;
  font-family: "OriginalGaramondBT-Roman", "EB Garamond", serif;
  font-size: 13px;
  letter-spacing: .2em;
  text-align: center;
}

.ec-auth > .heading-page-secondary {
  margin: 0 0 24px !important;
  padding: 0 !important;
  font-size: 30px;
  line-height: 1.4;
  text-align: center;
}

.ec-auth__lead {
  max-width: 60ch;
  margin: 0 auto 32px !important;
  padding: 0 0 32px !important;
  border-bottom: 1px solid #303030;
  font-size: 15px !important;
  line-height: 1.85;
}

.ec-auth__lead a,
.ec-auth .help-block a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ec-auth__form {
  box-sizing: border-box;
  margin: 0 0 24px;
  padding: 32px;
  border-top: 1px solid #303030;
  border-bottom: 1px solid #ddd;
  background: #fafafa;
}

.ec-auth__form .row,
.ec-auth__form [class*="col-"] {
  margin-right: 0;
  margin-left: 0;
  padding-right: 0;
  padding-left: 0;
}

.ec-auth__form .form-fields {
  width: 100%;
  max-width: none;
}

/* 入力・選択領域と確定操作を分離し、誤操作と窮屈さを防ぐ。 */
.ec-auth__form .form-fields > .form-field + .submit {
  margin-top: 24px;
}

.ec-auth__form .form-group {
  margin-bottom: 24px;
}

.ec-auth__form .form-group:last-child {
  margin-bottom: 0;
}

.ec-auth__form label {
  display: block;
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.ec-auth__form .text-danger {
  color: #a52a24;
  font-size: 13px;
}

.ec-auth__form .form-control {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #aaa;
  border-radius: 0;
  background: #fff;
  color: #1c1c1c;
  font-size: 16px;
  line-height: 1.5;
  box-shadow: none;
}

.ec-auth__form .form_check {
  padding-top: 4px;
}

.ec-auth__form .form_check > label {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  cursor: pointer;
}

.ec-auth__form .form_check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 20px;
}

.ec-auth__form .help-block {
  margin: 0 0 24px;
  color: #666;
  font-size: 14px;
  line-height: 1.8;
}

.ec-auth__form .submit,
.ec-auth__primary {
  box-sizing: border-box;
  display: inline-flex;
  min-width: 240px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid #111;
  border-radius: 0;
  background: #111;
  color: #fff;
  font-size: 16px;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}

.ec-auth__primary:focus {
  color: #fff;
}

.ec-auth__form .submit:hover:not(:disabled),
.ec-auth__primary:hover {
  background: #fff;
  color: #111;
}

.ec-auth__form .submit:disabled {
  border-color: #aaa;
  background: #aaa;
  color: #fff;
  cursor: not-allowed;
}

.ec-auth__form > .submit,
.ec-auth__form .form-fields > .submit {
  display: flex;
  margin-right: auto;
  margin-left: auto;
}

.ec-auth__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.ec-auth__nav--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 340px;
  margin-right: auto;
  margin-left: auto;
}

.ec-auth__nav a {
  box-sizing: border-box;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid #303030;
  background: #fff;
  color: #303030;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}

.ec-auth__nav a:hover {
  background: #303030;
  color: #fff;
}

.ec-auth .alert {
  box-sizing: border-box;
  position: relative;
  margin: 0 0 24px;
  padding: 16px 52px 16px 18px;
  border: 1px solid #d5d5d5;
  border-radius: 0;
  background: #fafafa;
  font-size: 14px;
  line-height: 1.7;
}

.ec-auth .alert-danger {
  border-color: #b42318;
  background: #fff7f6;
  color: #8a1c14;
}

.ec-auth .alert-success {
  border-color: #507450;
  background: #f5faf5;
}

.ec-auth .alert-info {
  border-color: #777;
  background: #f7f7f7;
}

.ec-auth .alert ul {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}

.ec-auth .alert .close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 40px;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: currentColor;
  font-size: 16px;
}

.ec-auth__form .g-recaptcha,
.ec-auth__form iframe {
  max-width: 100%;
}

.ec-auth a:focus-visible,
.ec-auth button:focus-visible,
.ec-auth input:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .ec-auth {
    max-width: none;
    padding: 32px 0 72px;
    font-size: 15px;
  }

  .ec-auth > .heading-page-secondary {
    font-size: 26px;
  }

  .ec-auth__lead {
    font-size: 15px !important;
  }

  .ec-auth__form {
    padding: 24px 20px;
  }

  .ec-auth__form .submit,
  .ec-auth__primary {
    width: 100%;
    min-width: 0;
  }

  .ec-auth__nav,
  .ec-auth__nav--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
  }
}
