/* Otonacica ログインページ専用CSS */

.ot-login-page {
  --login-main: #35483d;
  --login-main-dark: #26382f;
  --login-accent: #e57c65;
  --login-cream: #f7f3eb;
  --login-text: #30332f;
  --login-muted: #777a74;
  --login-line: #dddcd5;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--login-text);
  background:
    radial-gradient(circle at 12% 15%, rgba(229, 124, 101, .10), transparent 27rem),
    radial-gradient(circle at 88% 80%, rgba(53, 72, 61, .09), transparent 30rem),
    var(--login-cream);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

.ot-login-page *,
.ot-login-page *::before,
.ot-login-page *::after {
  box-sizing: border-box;
}

.ot-login-main {
  flex: 1;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 25px 20px 55px;
}

.ot-login-card {
  width: min(100%, 490px);
  padding: 48px 52px 42px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(53, 72, 61, .10);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(38, 56, 47, .10);
}

.ot-login-card__header {
  margin-bottom: 34px;
  text-align: center;
}

.ot-login-card__eyebrow {
  margin: 0 0 8px;
  color: var(--login-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
}

.ot-login-card__header h1 {
  margin: 0 0 13px;
  color: var(--login-main-dark);
  font-family: Georgia, "Times New Roman", "Noto Serif JP", serif;
  font-size: 34px;
  line-height: 1.3;
}

.ot-login-card__header > p:last-child {
  margin: 0;
  color: var(--login-muted);
  font-size: 14px;
  line-height: 1.8;
}

.ot-login-form {
  display: grid;
  gap: 22px;
}

.ot-login-error,
.ot-login-notice {
  margin-bottom: 20px;
  padding: 13px 15px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.7;
}

.ot-login-error {
  color: #8b2f2f;
  background: #fff1ef;
  border: 1px solid #d9a09a;
}

.ot-login-notice {
  color: #315e4a;
  background: #eef8f2;
  border: 1px solid #9fc6ad;
}

.ot-login-field label,
.ot-login-field__label-row label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.ot-login-field__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
}

.ot-login-field__label-row a {
  color: var(--login-main);
  font-size: 12px;
  text-underline-offset: 3px;
}

.ot-login-field input[type="email"],
.ot-login-field input[type="password"],
.ot-login-field input[type="text"] {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--login-line);
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: var(--login-text);
  font: inherit;
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}

.ot-login-field input::placeholder {
  color: #b1b2ad;
}

.ot-login-field input:focus {
  border-color: var(--login-main);
  box-shadow: 0 0 0 3px rgba(53, 72, 61, .10);
}

.ot-login-password {
  position: relative;
}

.ot-login-password input {
  padding-right: 66px !important;
}

.ot-login-password__toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  min-width: 48px;
  padding: 8px 6px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 6px;
  color: var(--login-main);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ot-login-password__toggle:hover {
  background: rgba(53, 72, 61, .07);
}

.ot-login-remember {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: -5px;
  font-size: 13px;
  cursor: pointer;
}

.ot-login-remember input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--login-main);
}

.ot-login-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 3px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--login-main);
  box-shadow: 0 8px 18px rgba(53, 72, 61, .19);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
}

.ot-login-submit:hover {
  background: var(--login-main-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(53, 72, 61, .23);
}

.ot-login-submit:focus-visible,
.ot-login-password__toggle:focus-visible,
.ot-login-page a:focus-visible {
  outline: 3px solid rgba(229, 124, 101, .45);
  outline-offset: 3px;
}

.ot-login-register {
  margin-top: 34px;
  padding-top: 27px;
  border-top: 1px solid #ebe9e2;
  text-align: center;
}

.ot-login-register p {
  margin: 0 0 10px;
  color: var(--login-muted);
  font-size: 13px;
}

.ot-login-register a {
  color: var(--login-accent);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.ot-login-register a::after {
  content: " →";
}

.ot-login-sp-only {
  display: none;
}

@media (max-width: 640px) {
  .ot-login-main {
    display: block;
    padding: 16px 15px 38px;
  }

  .ot-login-card {
    padding: 38px 24px 34px;
    border-radius: 18px;
  }

  .ot-login-card__header {
    margin-bottom: 29px;
  }

  .ot-login-card__header h1 {
    font-size: 30px;
  }

  .ot-login-field__label-row {
    align-items: center;
  }

  .ot-login-sp-only {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ot-login-page *,
  .ot-login-page *::before,
  .ot-login-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
