/* ログイン画面 */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

main {
  padding: 2rem 1rem;
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 160px); /* ヘッダー＆フッター分を考慮 */
}

.login-box {
  background-color: #fff;
  padding: 3rem 3.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 520px; /* ★ 横幅をやや広くする */
}

.login-box h1 {
  margin-bottom: 2rem;
  font-size: 1.75rem;
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.login-form label {
  font-weight: bold;
  font-size: 0.95rem;
}

.login-form input {
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
}

.login-form button {
  padding: 0.8rem;
  font-size: 1rem;
  background-color: #1a1f25;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  margin-top: 0.5rem;
}

.login-form button:hover {
  background-color: #333;
}

.login-links {
  margin-top: 1.8rem;
  font-size: 0.9rem;
  text-align: center;
}

.login-links a {
  color: #1a1f25;
  text-decoration: none;
}

.login-links a:hover {
  text-decoration: underline;
}

.forgot-password-link {
  text-align: right;
  margin-top: 0.25rem;
  margin-bottom: 1.25rem;
}

.forgot-password-link a {
  font-size: 0.85rem;
  color: #1a1f25;
  text-decoration: underline;
}

.forgot-password-link a:hover {
  text-decoration: none;
}



/* 新規登録画面 */
.terms-text {
  font-size: 0.9rem;
  margin: 1.2em 0;
  color: #333;
  line-height: 1.6;
}

.terms-text a {
  color: #003366;
  text-decoration: underline;
}


/* 新規登録・パスワード登録画面 */
.password-note {
  font-size: 0.85rem;
  color: #666;
  margin-left: 0.5em;
}

/* --------------------------------------------------- */
/* 新規登録・パスワード登録画面 */
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
  text-align: left;
}

.consent-label input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #666;  /* ← 少し淡いグレーにして浮かせない */
  border-radius: 2px;
  background-color: #fff;
  position: relative;
  margin-top: 2px;
  cursor: pointer;
  transition: none;
}

.consent-label input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 9px;
  border: solid #333;  /* ← 黒より少し淡く */
  border-width: 0 1.8px 1.8px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

.consent-label span {
  display: inline-block;
  font-weight: normal;
  color: #000;
}

.error-message {
  color: red;
  font-size: 0.9rem;
  margin-top: 0.4em;
}



/* --------------------------------------------------- */
/* 新規登録・メール送信完了画面（register_mail_sent.php） */
.center-text {
  text-align: center;
}

.check-icon {
  margin-bottom: 24px;
}

.sent-email-box {
  background-color: #f4f4f4;
  padding: 12px 16px;
  margin: 16px auto;
  display: inline-block;
  font-size: 16px;
  border-radius: 4px;
}

.instruction-text {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.resend-button {
  background-color: #fff;
  border: 1px solid #ccc;
  color: #333;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.resend-button:hover {
  background-color: #f0f0f0;
}

/* --------------------------------------------------- */
/* パスワードの表示/非表示 */
.password-toggle {
  position: relative;
}
.password-toggle input {
  width: 100%;
  padding-right: 40px;
}
.toggle-icon {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  cursor: pointer;
}


/* スマホ対応 */
@media (max-width: 768px) {
  .login-box {
    padding: 2rem 1.2rem;  /* ← 左右の余白を減らす */
    border-radius: 0;
    box-shadow: none;
  }

  .login-form input,
  .login-form button {
    font-size: 1rem;
    padding: 0.6rem;
  }

  .login-box h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .login-links {
    font-size: 0.85rem;
  }

  .forgot-password-link a {
    font-size: 0.8rem;
  }

  .toggle-icon {
    width: 20px;
    height: 20px;
    right: 8px;
  }
}