/* 八重桜 社用車予約 — 現場のスマホ（幅375px想定）とPCの両方で使う前提のスタイル。
   基本方針: 文字は大きめ、押す所は大きめ、横スクロールを作らない。
   見た目テーマ「やわらか桜」: 桜色ベース・角丸・やわらかい影・丸ゴシック見出し。 */

:root {
  /* フォント: 本文は Noto Sans JP、見出し・ブランドは丸ゴシックの Zen Maru Gothic。
     Web フォントが読めない環境では従来のシステムフォントに落とす。 */
  --font-body: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --font-round: "Zen Maru Gothic", var(--font-body);

  /* 桜色 */
  --pink: #c2185b;          /* 主要ボタン・強い操作（白文字が乗る前提の濃さ） */
  --pink-deep: #a3134c;     /* hover */
  --rose: #e75a8b;          /* 差し色 */
  --plum: #7a1038;          /* 桜色の面に乗せる文字色 */
  --blossom: #fff2f6;       /* いちばん淡い桜（面のうっすら地） */
  --blossom-2: #fde1ea;     /* パネル・現在地 */
  --blossom-line: #f4c9d9;  /* 桜色の枠線 */

  --ink: #26222b;           /* 本文（少し温かい黒） */
  --ink-soft: #6d6672;      /* 補助テキスト */
  --line: #efe2e8;          /* 通常の枠線（温かいライトグレー） */
  --card: #ffffff;

  --ok: #1b6b3a;  --ok-bg: #e6f4ea;
  --err: #b3261e; --err-bg: #fdecea;

  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(150, 40, 80, .08);
  --shadow: 0 6px 20px rgba(150, 40, 80, .10);
  --shadow-lg: 0 14px 34px rgba(150, 40, 80, .16);
}

* { box-sizing: border-box; }

/* 画面幅に応じて文字全体を滑らかに縮める土台。各文字サイズは rem（この値の相対）なので、
   ここが縮むと全部の文字が比例して縮む。広い画面(約875px〜)ではフルサイズ(16px)、
   狭い画面では最小13pxまで段階なしで縮む。 */
html { -webkit-text-size-adjust: 100%; font-size: clamp(13px, 0.6vw + 10.75px, 16px); }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: linear-gradient(180deg, #fff6f9 0%, #fdf1f5 42%, #faf7f8 100%);
  background-attachment: fixed;
}

h1, h2, h3, .site-title, .page-title, .login-title,
.big-link-title, .alt-heading, .confirm-heading, .scope-title {
  font-family: var(--font-round);
  letter-spacing: .01em;
}

:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- ヘッダー / ナビ ---------- */
/* 上段はカード・ボタンと揃えて桜グラデ＋白文字でポップに見せる */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(120deg, #ff7fb0 0%, var(--pink) 55%, var(--pink-deep) 100%);
  border-bottom: none;
  box-shadow: 0 6px 18px rgba(194, 24, 91, .30);
  padding: 8px 16px 0;
}
.site-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(120, 16, 56, .35);
  text-decoration: none;
  padding: 4px 2px 8px;
}
.site-title::before {
  content: "🌸";
  font-size: 1.25rem;
  line-height: 1;
}
.site-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.site-nav a {
  flex: 1 1 auto;
  text-align: center;
  padding: 10px 10px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: background .15s, color .15s, box-shadow .15s;
}
.site-nav a:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.site-nav a.is-current {
  color: var(--pink);
  background: #fff;
  border-color: #fff;
  box-shadow: 0 3px 10px rgba(120, 16, 56, .28);
}

.container { max-width: 1120px; margin: 0 auto; padding: 20px 16px 56px; }
.page-title { font-size: 1.6875rem; font-weight: 700; margin: 6px 0 16px; color: var(--pink); }
.lead { color: var(--ink-soft); margin: 0 0 18px; }
.empty {
  background: var(--card); border: 1px dashed var(--blossom-line); border-radius: var(--radius);
  padding: 28px 16px; text-align: center; color: var(--ink-soft);
}
.site-footer { padding: 20px 16px 28px; text-align: center; color: var(--ink-soft); font-size: 0.8125rem; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 20px;
  border: 1px solid var(--blossom-line); border-radius: var(--radius-pill);
  background: var(--card); color: var(--plum);
  font-family: var(--font-body);
  font-size: 1.0625rem; font-weight: 700; text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .15s, box-shadow .15s, transform .05s, border-color .15s;
}
.btn:hover { background: var(--blossom); box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--rose) 0%, var(--pink) 100%);
  border-color: var(--pink-deep); color: #fff;
  box-shadow: 0 6px 16px rgba(194, 24, 91, .28);
}
.btn-primary:hover { background: var(--pink-deep); box-shadow: 0 8px 20px rgba(194, 24, 91, .34); }
.btn-danger { background: var(--card); border-color: var(--err); color: var(--err); box-shadow: var(--shadow-sm); }
.btn-danger:hover { background: var(--err-bg); }
.btn-block { display: flex; width: 100%; }
.btn-small { min-height: 44px; padding: 8px 16px; font-size: 0.9375rem; }
.btn-nav { flex: 0 0 auto; padding: 10px 14px; }

.card-grid { display: grid; gap: 14px; margin-bottom: 22px; }
.big-link {
  display: block; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px 20px 20px 22px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: transform .12s, box-shadow .15s, border-color .15s;
}
.big-link::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: linear-gradient(180deg, var(--rose), var(--pink));
}
.big-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blossom-line);
}
.big-link-title { display: block; font-size: 1.3125rem; font-weight: 700; color: var(--plum); }
.big-link-desc { display: block; font-size: 0.875rem; color: var(--ink-soft); margin-top: 2px; }

/* ---------- 通知 ---------- */
.alert { border-radius: var(--radius); padding: 14px 16px; margin: 0 0 18px; box-shadow: var(--shadow-sm); }
.alert-ok { background: var(--ok-bg); border: 1px solid var(--ok); color: var(--ok); }
.alert-error { background: var(--err-bg); border: 1px solid var(--err); color: var(--err); }
.alert-title { margin: 0 0 4px; font-weight: 700; }
.alert ul { margin: 0; padding-left: 1.2em; }

/* ---------- 日付バー ---------- */
.date-bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.date-now { flex: 1 1 auto; text-align: center; min-width: 0; }
.date-label { display: block; font-size: 1.1875rem; font-weight: 700; color: var(--plum); }
.date-form { display: flex; gap: 6px; justify-content: center; margin-top: 6px; }
.date-form input { min-width: 0; flex: 0 1 auto; }

/* ---------- フォーム ---------- */
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input[type="text"], .field input[type="date"], .field input[type="password"], .field select, .date-form input {
  width: 100%; max-width: 100%;
  min-height: 48px; padding: 10px 14px; font-size: 1.0625rem;
  font-family: var(--font-body);
  border: 1.5px solid #cbb8c1; border-radius: var(--radius); background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .date-form input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(231, 90, 139, .22);
}
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1 1 0; min-width: 0; }
.field-check label {
  font-weight: 400; display: flex; gap: 10px; align-items: center;
  min-height: 44px; padding: 6px 4px;
}
/* チェックボックス自体の当たり判定を 44px 角にする（ネイティブ外観にパディングを足しても
   ブラウザが無視するため、width/height を直接 44px にする） */
.field-check input { width: 44px; height: 44px; flex: 0 0 auto; accent-color: var(--pink); }
.required { color: var(--err); font-size: 0.8125rem; font-weight: 700; margin-left: 4px; }
.hint { margin: 6px 0 0; font-size: 0.8125rem; color: var(--ink-soft); }
.form-actions { display: grid; gap: 10px; margin-top: 8px; }

/* ---------- 一覧テーブル ---------- */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.data-table th, .data-table td {
  padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left;
  overflow-wrap: anywhere;
}
.data-table thead th { background: linear-gradient(180deg, var(--rose), var(--pink)); color: #fff; font-size: 0.875rem; white-space: nowrap; }
.data-table tbody tr:nth-child(even) td { background: #fffafc; }
.data-table tbody tr:hover td { background: var(--blossom); }
.data-table tr.is-inactive td { background: #f4f1f3; color: var(--ink-soft); }
/* 車番など数字の列は桁を揃える（等幅数字＋PCの表では右寄せ。スマホのカード表示は左のまま） */
.data-table .num { font-variant-numeric: tabular-nums; }
@media (min-width: 641px) {
  .data-table th.num, .data-table td.num { text-align: right; }
}
/* 車両名の末尾「（希望№）」を縦に揃える。モデル名側に最長ぶんの固定幅を持たせ、
   番号側は固定幅＋右揃えにして「）」の位置（後ろ）を合わせる */
.v-model { display: inline-block; min-width: 8em; }
.v-no { display: inline-block; min-width: 4.4em; text-align: right; font-variant-numeric: tabular-nums; }

.badge { display: inline-block; padding: 3px 12px; border-radius: var(--radius-pill); font-size: 0.8125rem; font-weight: 700; }
.badge-on { background: var(--ok-bg); color: var(--ok); }
.badge-off { background: #ece7ea; color: #6d6672; }

/* ---------- 狭い画面: 表を1件1カードに畳んで横スクロールを無くす ---------- */
@media (max-width: 640px) {
  .data-table { box-shadow: none; background: transparent; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table thead { display: none; }
  .data-table tr {
    border: 1px solid var(--line); border-left: 5px solid var(--blossom-line);
    border-radius: var(--radius); background: var(--card); margin-bottom: 12px; padding: 4px 0;
    box-shadow: var(--shadow-sm);
  }
  .data-table td, .data-table tbody tr:nth-child(even) td, .data-table tbody tr:hover td {
    display: flex; gap: 10px; align-items: baseline;
    border-bottom: 1px dotted var(--line); padding: 8px 14px; background: transparent;
  }
  .data-table tr td:last-child { border-bottom: none; }
  .data-table td::before {
    content: attr(data-label);
    flex: 0 0 5.5em;
    font-size: 0.8125rem; font-weight: 700; color: var(--ink-soft);
  }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .container { padding: 14px 12px 44px; }
  .page-title { font-size: 1.375rem; }
  .field-row { display: block; }
  .field-row .field { margin-bottom: 18px; }
  .date-bar { flex-wrap: wrap; }
  .btn-nav { flex: 1 1 40%; }
  .date-now { flex: 1 1 100%; order: -1; }
}

/* ---------- PC幅: ボタンを本文幅いっぱいに伸ばさず自然な幅にする ---------- */
@media (min-width: 641px) {
  .btn-block { display: inline-flex; width: auto; min-width: 220px; justify-self: start; }
  .form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
  .form-actions .btn-block { flex: 0 0 auto; }
  .card-grid { justify-items: start; }
  .card-grid .big-link { justify-self: stretch; }
}

/* ---------- F2 配車表グリッド ---------- */
.grid-hint { margin: 0 0 12px; color: var(--ink-soft); }
.grid-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.grid-table { border-collapse: collapse; width: max-content; }
.grid-table th, .grid-table td {
  border: 1px solid var(--line);
  padding: 0;
  text-align: center;
}
.grid-table thead th {
  background: linear-gradient(180deg, var(--rose), var(--pink)); color: #fff;
  font-size: 0.8125rem; font-weight: 700; white-space: nowrap; padding: 12px 6px;
}
.grid-col-vehicle {
  position: sticky; left: 0; z-index: 2;
  background: var(--card); text-align: left; white-space: nowrap;
  min-width: 128px; max-width: 160px; padding: 8px 12px !important;
  box-shadow: 6px 0 10px -8px rgba(150, 40, 80, .25);
}
thead .grid-col-vehicle { z-index: 3; background: var(--pink); color: #fff; }
.grid-vehicle-name { display: block; font-weight: 700; font-size: 0.9375rem; color: var(--plum); white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
.grid-vehicle-category { display: block; font-size: 0.75rem; color: var(--ink-soft); }
.grid-cell { width: 56px; min-width: 56px; height: 48px; background: var(--card); }
.grid-cell a {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; min-height: 44px;
  text-decoration: none; color: inherit; font-size: 0.8125rem; padding: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: background .12s;
}
.grid-cell-empty a { color: #bda6b1; font-size: 1.125rem; font-weight: 700; }
.grid-cell-empty a:hover, .grid-cell-empty a:focus { background: var(--blossom-2); color: var(--pink); }
.grid-cell-filled { background: var(--blossom-2); }
.grid-cell-filled a { color: var(--plum); font-weight: 700; }
.grid-cell-filled a:hover, .grid-cell-filled a:focus { background: var(--blossom-line); }

/* 広い画面（PC・タブレット横）では全時間コマを画面幅いっぱいに詰めて表示し、横スクロールを無くす。
   狭い画面（スマホ）はコマが潰れて読めなくなるので、従来どおり横スクロールで見せる。 */
@media (min-width: 760px) {
  .grid-scroll { overflow-x: visible; }
  .grid-table { width: 100%; table-layout: fixed; }
  .grid-col-vehicle { width: 132px; min-width: 132px; max-width: 132px; }
  .grid-table thead th { padding: 10px 2px; font-size: 0.75rem; }
  .grid-cell { width: auto; min-width: 0; }
  .grid-cell a { font-size: 0.75rem; }
}

/* ---------- F5 代替案 ---------- */
.alternatives {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.alt-heading { margin: 0 0 12px; font-size: 1.1875rem; font-weight: 700; color: var(--plum); }
.alt-group { margin-bottom: 16px; }
.alt-group:last-child { margin-bottom: 0; }
.alt-group-title { margin: 0 0 8px; font-size: 0.875rem; font-weight: 700; color: var(--ink-soft); }
.alt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.btn-alt {
  width: 100%; justify-content: flex-start;
  background: var(--blossom); border-color: var(--blossom-line); color: var(--plum);
}
.btn-alt:hover { background: var(--blossom-2); }

/* ---------- 予約の詳細 ---------- */
.detail-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.detail-list { margin: 0; }
.detail-list dt { font-size: 0.8125rem; font-weight: 700; color: var(--ink-soft); margin-top: 14px; }
.detail-list dt:first-child { margin-top: 0; }
.detail-list dd { margin: 4px 0 0; font-size: 1.0625rem; }
.badge-cat { background: var(--blossom-2); color: var(--plum); margin-left: 6px; }

/* ---------- F6 繰り返し予約 ---------- */
/* 「毎週繰り返す」のチェックが入ったときだけ曜日・終了日を出す（兄弟セレクタで開閉するため JS 不要） */
.repeat-field { border-top: 1px solid var(--line); padding-top: 14px; }
.repeat-toggle { width: 44px; height: 44px; vertical-align: middle; flex: 0 0 auto; accent-color: var(--pink); }
.repeat-toggle-label {
  display: inline-block !important; vertical-align: middle;
  font-weight: 700; margin: 0 0 0 4px !important; min-height: 44px; line-height: 44px;
}
.repeat-toggle:not(:checked) ~ .recurrence-fields { display: none; }
.recurrence-fields {
  margin-top: 12px; padding: 14px; border-radius: var(--radius);
  background: var(--blossom); border: 1px solid var(--blossom-line);
}
.recurrence-fields .field:last-child { margin-bottom: 0; }
.weekday-set { border: 0; margin: 0 0 14px; padding: 0; }
.weekday-set legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
.weekday-list { display: flex; flex-wrap: wrap; gap: 6px; }
.weekday-item {
  display: flex !important; align-items: center; justify-content: center; gap: 4px;
  min-width: 44px; min-height: 44px; padding: 0 8px; margin: 0 !important;
  background: #fff; border: 1px solid var(--blossom-line); border-radius: var(--radius);
  font-weight: 700; cursor: pointer; transition: background .12s, color .12s, border-color .12s;
}
.weekday-item input { width: 22px; height: 22px; margin: 0; accent-color: #fff; }
.weekday-item:has(input:checked) { background: var(--pink); border-color: var(--pink); color: #fff; }
.badge-repeat { background: var(--blossom-2); color: var(--plum); }
.hint-inline { font-size: 0.8125rem; color: var(--ink-soft); margin-left: 6px; }
.alert-scope { background: var(--blossom); border: 1px solid var(--blossom-line); color: var(--plum); }

/* 繰り返しの確認画面 / 取消の確認画面 */
.confirm-block {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.confirm-heading { font-size: 1.0625rem; margin: 0 0 8px; }
.confirm-count { margin: 0 0 8px; font-size: 1.0625rem; }
.confirm-count-number { font-size: 1.625rem; font-weight: 700; color: var(--pink); }
.confirm-count-sub { font-size: 0.875rem; color: var(--ink-soft); }
.confirm-details summary { cursor: pointer; min-height: 44px; line-height: 44px; color: var(--pink); font-weight: 700; }
.confirm-list { margin: 0; padding-left: 1.2em; font-size: 0.9375rem; }
.conflict-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.conflict-item {
  background: var(--err-bg); border: 1px solid var(--err); border-radius: var(--radius);
  padding: 10px 14px; font-size: 0.9375rem;
}
.conflict-date { display: block; font-weight: 700; color: var(--err); }
.conflict-reason { display: block; color: var(--ink-soft); font-size: 0.875rem; }
.scope-block {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 14px 18px 18px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.scope-title { font-size: 1.0625rem; margin: 0 0 4px; }
.scope-block .hint { margin-top: 8px; }

/* ---------- F7 車検アラートと車検日のブロック ---------- */

/* トップ・配車表の上部に出す一覧。対象が0台のときはそもそも要素ごと描かれない */
.inspection-alert {
  background: #fff8e6; border: 1px solid #e0a800; border-left-width: 6px;
  border-radius: var(--radius); padding: 14px 16px; margin: 0 0 18px;
  color: #6b4a00; box-shadow: var(--shadow-sm);
}
.inspection-alert-line { margin: 0 0 4px; }
.inspection-alert-title { font-weight: 700; margin-right: 4px; }
.inspection-alert-item a { color: #6b4a00; font-weight: 700; }
.inspection-alert-expired { color: var(--err); }
.inspection-alert-expired .inspection-alert-item a { color: var(--err); }
.inspection-alert-note { margin: 6px 0 0; font-size: 0.875rem; color: var(--ink-soft); }

/* 車両一覧・グリッドの車両名に付ける印 */
.badge-inspection { margin-left: 6px; }
.badge-inspection-soon { background: #fff0c2; color: #8a5b00; }
.badge-inspection-expired { background: var(--err-bg); color: var(--err); }

/* 車検日当日・車検切れの日のグリッドのコマ。リンクを持たないので押しても何も起きない */
.grid-cell-inspection { background: #dcd7da; }
.grid-inspection-label {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; min-height: 44px;
  font-size: 0.75rem; font-weight: 700; color: #4a4f55;
  overflow: hidden; white-space: nowrap;
}
.grid-cell-inspection-expired { background: #e8dada; }
.grid-cell-inspection-expired .grid-inspection-label { color: #7a3a35; }
.grid-col-vehicle-inspection { background: #f2f0f1; }

/* 繰り返しの確認画面で、車検を理由に登録されない日 */
.conflict-reason-inspection { color: #8a5b00; font-weight: 700; }

/* ---------- F8 ログインと権限 ---------- */
/* ヘッダー右のログイン者。スマホ幅では nav の下に折り返す（横スクロールを作らない） */
.site-user {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 10px;
  border-top: 1px solid rgba(255, 255, 255, .4);
  margin-top: 8px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, .92);
}
.site-user-name { font-weight: 700; color: #fff; }
.logout-form { margin: 0 0 0 auto; }
.badge-admin { background: #fff; color: var(--pink); }
.badge-staff { background: #fff; color: #244a7a; }

/* ログイン画面。ヘッダー・ナビを出さず、入力だけに集中させる */
.login-body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 48px;
  background: radial-gradient(1200px 600px at 50% -10%, #ffe3ee 0%, rgba(255, 227, 238, 0) 60%),
              linear-gradient(180deg, #fff6f9 0%, #fbeef3 100%);
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--blossom-line);
  border-radius: var(--radius-lg);
  padding: 28px 24px 22px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.login-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(90deg, var(--rose), var(--pink));
}
.login-title { color: var(--pink); font-size: 1.4375rem; margin: 4px 0 4px; display: flex; align-items: center; gap: 8px; }
.login-title::before { content: "🌸"; font-size: 1.375rem; line-height: 1; }
.login-lead { color: var(--ink-soft); margin: 0 0 18px; }
