:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;

  --card-bg: #ffffff;

  --text-main: #111827;
  --text-sub: #6b7280;
  --text-light: #9ca3af;

  --border-color: #e5e7eb;

  --error-bg: #fef2f2;
  --error-text: #dc2626;
  --error-border: #fecaca;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f4f6;
}

/* ページ全体レイアウト */
.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  box-sizing: border-box;
}

/* カード全体のUI */
.auth-card {
  display: flex;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 1000px;
  width: 100%;
  min-height: 600px;
}

/* 左側：ログインフォーム */
.auth-form-pane {
  flex: 1;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 右側：サービス説明（青系グラデーション） */
.auth-feature-pane {
  flex: 1;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: white;
  padding: 48px;
  display: flex;
  align-items: center;
}

/* ヘッダー・ロゴ周り */
.auth-header {
  margin-bottom: 32px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-logo-icon {
  width: 32px;
  height: 32px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.auth-logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
}

.auth-logo-sub {
  font-weight: 400;
  color: var(--text-sub);
  font-size: 0.875rem;
}

.auth-title {
  margin: 0 0 8px 0;
  font-size: 1.75rem;
  font-weight: 700;
}

.auth-subtitle {
  margin: 0;
  color: var(--text-sub);
  font-size: 0.95rem;
}

/* フォーム要素 */
.auth-form {
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: all 0.2s;
  color: var(--text-main);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-input::placeholder {
  color: var(--text-light);
}

/* リンク */
.forgot-link,
.signup-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.forgot-link:hover,
.signup-link:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-block {
  width: 100%;
  margin-top: 12px;
}

/* フッター */
.auth-footer {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-sub);
}

/* エラーメッセージ */
.alert-error {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--error-bg);
  color: var(--error-text);
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--error-border);
  margin-bottom: 24px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* 右側：サービス説明リスト */
.feature-content {
  width: 100%;
}

.feature-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 16px 0;
}

.feature-description {
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.9;
  margin: 0 0 40px 0;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.feature-text h3 {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.feature-text p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.4;
}

/* レスポンシブ対応 (スマホ向け) */
@media (max-width: 768px) {
  .auth-wrapper {
    padding: 16px;
  }

  .auth-card {
    flex-direction: column;
    min-height: auto;
  }

  .auth-form-pane {
    padding: 32px 24px;
  }

  .auth-feature-pane {
    padding: 32px 24px;
  }

  .feature-title {
    font-size: 1.5rem;
  }
}


.password-wrapper {
  position: relative;
}

.password-wrapper .form-input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  border: none;
  background: none;
  cursor: pointer;
  color: #64748b;
  padding: 0;
  display: flex;
  align-items: center;
}

.password-toggle:hover {
  color: #2563eb;
}

.auth-logo {
  text-decoration: none;
  color: inherit;
}