/* 全体ラッパー */
.signin {
  display: flex;
  justify-content: center;
  padding: 3rem 1rem;
  background-color: #f3f4f6;
}

.signin-wrapper {
  width: 100%;
  max-width: 640px;
  background-color: #ffffff;
  padding: 2rem 2.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  box-sizing: border-box;
}

/* 見出し */
.content-header {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  color: #111827;
}

/* 各入力項目 */
.signin-wrapper fieldset {
  margin-bottom: 1.5rem;
  border: none;
  padding: 0;
  position: relative;
}

.signin-wrapper label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
  margin-right: 0.5rem;
}

.si-requiretext {
  display: inline-block;
  background-color: #ef4444;
  color: white;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  vertical-align: middle;
  line-height: 1.2;
}

/* 入力フィールド */
.signin-wrapper input[type="email"],
.signin-wrapper input[type="password"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.signin-wrapper input[type="email"]:focus,
.signin-wrapper input[type="password"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* チェックボックス項目 */
.si-remember {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: #374151;
}

.si-remember input[type="checkbox"] {
  margin-right: 0.5rem;
}

/* 送信ボタン */
.si-submit {
  text-align: center;
  margin: 2rem auto 60px;
}

.si-submit input[type="submit"] {
  background: #000;
  color: #fff;
  border: none;
  padding: 0.75rem 4rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.si-submit input[type="submit"]:hover {
  background-color: #1e40af;
}

/* flash メッセージ */
.signin-wrapper .flash {
  background-color: #fef3c7;
  color: #92400e;
  padding: 0.75rem 1rem;
  border: 1px solid #fde68a;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-align: center;
}

/* links セクション */
.signin-wrapper .links {
  text-align: center;
  margin-top: 1.5rem;
}

.signin-wrapper .links a {
  color: #3b82f6;
  text-decoration: none;
  font-size: 0.9rem;
}

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