* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #EBF3FC;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-header {
  background: #fff;
  flex-shrink: 0;
  position: relative;
}

.page-header::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(to right, #185FA5, #5BB3D8);
}

.page-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}

.page-header__logo {
  height: 60px;
  width: auto;
}

.page-header__contact {
  display: inline-block;
  padding: 8px 18px;
  background: #185FA5;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
}

.page-header__contact:hover {
  background: #154e8a;
}

.page-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.login-card {
  background: #ffffff;
  border: 0.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 380px;
}

/* ヘッダー */
.login-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.login-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.login-header h1 {
  font-size: 20px;
  font-weight: 500;
  color: #111827;
  margin-bottom: 4px;
}

.login-header p {
  font-size: 13px;
  color: #6b7280;
}

/* タブ */
.tab-nav {
  display: flex;
  border-bottom: 1.5px solid #e5e7eb;
  margin-bottom: 1.5rem;
}

.tab-btn {
  flex: 1;
  padding: 8px 0;
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.tab-btn.active {
  color: #185FA5;
  border-bottom-color: #185FA5;
}

/* フォームパネル */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* フォーム要素 */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  color: #111827;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: #185FA5;
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.1);
}

.form-group input::placeholder {
  color: #9ca3af;
}

.form-group--last {
  margin-bottom: 1.5rem;
}

/* ログインボタン */
.btn-login {
  width: 100%;
  padding: 10px;
  background: #185FA5;
  color: #E6F1FB;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-login:hover {
  background: #154e8a;
}

/* エラーメッセージ */
.error-message {
  background-color: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  color: #b91c1c;
  margin-bottom: 1rem;
}

/* 送信メッセージ */
.send-message {
  background-color: #d1fae5;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  color: #065f46;
  margin-bottom: 1rem;
}

/* JavaScript無効時の告知（_base.tpl の <noscript>）。
   本システムはJS必須のため、無効時は全画面の先頭に表示する */
.noscript-notice {
  margin: 0;
  padding: 10px 16px;
  background: #fff3cd;
  border-bottom: 1px solid #ffe69c;
  color: #664d03;
  font-size: 0.9em;
  line-height: 1.6;
}

/* 認証結果画面（verify.tpl）の「ログイン画面に戻る」 */
.verify-actions {
  text-align: center;
  margin-top: 1.5rem;
}
