body {
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
}

main {
  padding: 2rem 0;
}

/* フォーム共通スタイル */
.form-container {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 700px;
  margin: 50px auto;
}

.form-container h2 {
  margin: 0 0 1.5rem;
  text-align: center;
  color: #333;
  font-size: 1.5rem;
}

/* フォームグループ */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #555;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* ボタンスタイル */
form button[type="submit"] {
  width: 100%;
  padding: 0.875rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 0.5rem;
}

form button[type="submit"]:hover {
  background-color: var(--secondary-color);
}

form button[type="submit"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* パスワードリセットリンク */
.password-reset-link {
  margin-top: 1.25rem;
  text-align: center;
}

.signup-link {
  margin-top: 1.25rem;
  text-align: center;
}

.signup-link p {
  margin-bottom: 0.5rem;
  color: #555;
}

.signup-button {
  display: block;
  width: 100%;
  padding: 0.875rem;
  background-color: #1a365d; /* 濃い青 */
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.2s;
}

.signup-button:hover {
  background-color: #2c5282; /* ホバー時の濃い青 */
  text-decoration: none;
  color: white;
}

.signup-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* signup風のフォームデザインを統合 */
.signup-container {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 700px;
  margin: 0 auto;
}

/* タイトルスタイル */
.title-text {
  margin-top: 3rem;
  margin-bottom: 2rem;
  text-align: left;
  color: #333;
  font-size: 2rem;
  font-weight: bold;
  width: 90%;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* LISAアカウント通知 */
.lisa-account-notice {
  width: 90%;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.5rem;
  background-color: #e3f2fd;
  border: 1px solid #2196f3;
  border-radius: 6px;
  text-align: center;
}

.lisa-account-notice p {
  margin: 0;
  color: #1976d2;
  font-size: 0.95rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .lisa-account-notice p {
    font-size: 0.85rem;
  }
}

.signup-form .form-group {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}

.signup-form .form-group label {
  width: 160px;
  flex-shrink: 0;
  margin-right: 10%;
  margin-bottom: 0;
  text-align: left;
  color: #555;
  font-size: 1rem;
  display: block;
  line-height: 1.2;
}

.signup-form .form-group input {
  flex: 1;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1.1rem;
  height: 56px;
}

.signup-form .form-group input:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.signup-form .form-group input::placeholder {
  color: #aaa;
  opacity: 1;
}

@media (max-width: 768px) {
  .signup-form .form-group {
    flex-direction: column;
    align-items: stretch;
  }
  .signup-form .form-group label {
    min-width: 0;
    margin-right: 0;
    margin-bottom: 8px;
    text-align: left;
  }
}

.signup-form button[type="submit"] {
  display: block;
  margin: 24px auto;
  width: auto;
  min-width: 180px;
  padding: 0.75rem;
  background-color: #2c3e50;
  color: white;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.signup-form button[type="submit"]:hover {
  background-color: #354b60;
}

.signup-form button[type="submit"]:active {
  background-color: #354b60;
}

.error-message {
  min-height: 1.5em;
  word-break: break-all;
  text-align: center;
  color: #dc3545;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.text-center {
  text-align: center;
}

.signup-link a,
.password-reset-link a {
  color: #888;
  text-decoration: underline;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.signup-link a:hover,
.password-reset-link a:hover {
  color: #000;
  text-decoration: underline;
}

.btn-disabled,
button[disabled],
.btn.btn-primary:disabled {
  background-color: #ccc !important;
  color: #fff !important;
  cursor: not-allowed !important;
  opacity: 0.7;
  border: none;
}
