/* クリスマスのログイン画面（パソコン）を CONNECT のログインに合わせる（部品集 styles.css の上に重ねる。2026-11-24）。
 * 画面の大きさ：部品集は全体を zoom .616 で縮めて文字が 9px ほどになっていた。ここでは zoom を大きくし（.72〜.95）、
 * 文字は「zoom 後に 14px 以上」になる大きさで書く（デジタル庁の基準。太さは 400／700）。 */
.auth-shell { --auth-zoom: .82; --min-text: calc(14.4px / var(--auth-zoom)); }
@media (max-height: 820px) { .auth-shell { --auth-zoom: .74; } }
@media (max-height: 700px) { .auth-shell { --auth-zoom: .66; } }
@media (min-width: 1600px) and (min-height: 900px) { .auth-shell { --auth-zoom: calc(100vw / 1870px * .95); } }

body.xmas { font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif; }

/* ログインの欄（右の赤い面） */
main.auth-card { padding: 54px 52px 44px 112px; gap: 0; justify-content: center; }
main.auth-card > h1 { margin: 18px 0 0; font-family: inherit; font-size: 38px; font-weight: 700; letter-spacing: .02em; line-height: 1.3; color: #fff3e5; }
main.auth-card > p { margin: 10px 0 0; text-wrap: pretty; font-size: max(21px, var(--min-text)); line-height: 1.6; color: #f3dccb; }
main.auth-card form { display: grid; gap: 0; margin-top: 18px; }
main.auth-card form[hidden] { display: none; }
main.auth-card label.field, main.auth-card form > label { display: block; margin-top: 18px; font-size: max(21px, var(--min-text)); font-weight: 700; color: #ffebd8; }
main.auth-card label.field:first-child, main.auth-card form > label:first-child { margin-top: 0; }
main.auth-card .input-wrap { margin-top: 8px; min-height: 62px; }
main.auth-card .input-wrap input { height: 58px; font-size: max(22px, var(--min-text)); }
/* 給与明細のタブの欄（login-hours.js が作る。通常の画面と同じ形の label > input） */
main.auth-card form > label > input { display: block; box-sizing: border-box; width: 100%; height: 62px; margin-top: 8px; padding: 0 22px; border: 1px solid #efc9a54f; border-radius: 31px; background: var(--winter-field, #5a1418); color: #fff2e5; font: inherit; font-size: max(22px, var(--min-text)); font-weight: 400; outline: none; }
main.auth-card form > label > input:focus { border-color: #efd1a0; box-shadow: 0 0 0 3px #e4c4931c; }
main.auth-card button[type=submit] { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 62px; margin-top: 28px; border: 0; border-radius: 31px; color: #5a2a1b; background: var(--noel-gold-fill, linear-gradient(135deg, #f4dca5, #d8ae62)); box-shadow: 0 4px 14px #4521182b; font: inherit; font-size: max(23px, var(--min-text)); font-weight: 700; letter-spacing: .08em; cursor: pointer; }
main.auth-card button[type=submit]:disabled { opacity: .75; cursor: progress; }
main.auth-card button[type=submit]:focus-visible, main.auth-card .xmas-eye:focus-visible, .lh-tabs button:focus-visible { outline: 3px solid #fff1c8; outline-offset: 3px; }
main.auth-card #error, main.auth-card .lh-error { margin: 14px 0 0; min-height: 0; font-size: max(20px, var(--min-text)); line-height: 1.55; font-weight: 700; color: #ffe0a6; }
main.auth-card #error:empty, main.auth-card .lh-error:empty { display: none; }
.login-spinner { display: inline-block; width: 18px; height: 18px; margin-right: 10px; border: 3px solid #5a2a1b40; border-top-color: #5a2a1b; border-radius: 50%; animation: xmas-spin 1s linear infinite; }
@keyframes xmas-spin { to { transform: rotate(360deg); } }
main.auth-card .note { margin-top: 24px; padding-top: 16px; border-top: 1px solid #ffffff2a; font-size: max(18px, var(--min-text)); text-wrap: pretty; line-height: 1.65; color: #f0d9c8; }
main.auth-card .note a { color: #ffe6b8; }
main.auth-card .keiri-link { display: none; }

/* 目のボタン（パスワードを見せる・隠す） */
.xmas-eye { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; margin-right: -8px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.xmas-eye:hover { background: #ffe4ce16; }
.xmas-eye img { grid-area: 1 / 1; width: 24px; height: 24px; filter: brightness(0) invert(.9) sepia(.3); }
.xmas-eye .eye-off, .xmas-eye[aria-pressed="true"] .eye-on { display: none; }
.xmas-eye[aria-pressed="true"] .eye-off { display: block; }

/* 給与明細・業務アプリ・経理のタブ（login-hours.js が h1 の前に入れる） */
main.auth-card .lh-top { display: grid; gap: 12px; margin: 0; }
main.auth-card .lh-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; border: 1px solid #ffffff2a; border-radius: 22px; background: #00000026; }
main.auth-card .lh-tabs button { display: grid; place-items: center; gap: 2px; min-height: 58px; padding: 8px 6px; border: 0; border-radius: 16px; background: none; color: #f6dcc8; font: inherit; font-size: max(21px, var(--min-text)); font-weight: 700; line-height: 1.3; cursor: pointer; }
main.auth-card .lh-tabs button small { display: none; }
main.auth-card .lh-tabs button.on, main.auth-card .lh-tabs button[aria-selected="true"] { background: #fff6ea; color: #7a2c22; box-shadow: 0 3px 10px #3d0c0c40; }
main.auth-card .lh-tabs button.on small, main.auth-card .lh-tabs button[aria-selected="true"] small { color: #8b4a3c; }
main.auth-card .lh-chip { display: none; }
/* 時間外の説明（PC は見出しの下の段落に入る） */
main.auth-card .lh-warn { display: block; margin-top: 10px; padding: 4px 0 4px 14px; border-left: 4px solid #f2c27c; font-size: max(19px, var(--min-text)); line-height: 1.6; color: #fbe3c6; }
main.auth-card .lh-warn b { color: #ffd38f; }
main.auth-card .lh-copy-part { display: inline; }

/* 時間外の説明が出ている時は、下の注意書きは出さない（欄が詰まらないように） */
main.auth-card:has(.lh-warn) .note { display: none; }
main.auth-card .lh-warn { text-wrap: pretty; }

/* 左：CONNECT のロゴ・題字 */
.banner > .hotel-brand { min-height: 0; padding: 26px 40px 0; }
.holiday-logo { display: flex; align-items: center; gap: 18px; width: auto; max-width: none; aspect-ratio: auto; }
.holiday-logo > img.connect-logo { width: 118px; height: auto; padding: 6px 10px; border-radius: 16px; background: #fff; box-shadow: 0 2px 10px #0000001a; }
.connect-name { display: grid; gap: 4px; font-size: 31px; font-weight: 700; letter-spacing: .06em; color: #7a2c22; }
.connect-name small { font-size: max(21px, var(--min-text)); font-weight: 400; letter-spacing: .04em; color: #6e5a52; }
.banner h2, .banner h2 em { font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif; font-weight: 700; letter-spacing: .04em; line-height: 1.3; }
.banner h2 { margin: 0; font-size: 40px; color: #7a2c22; }
.banner h2 em { font-style: normal; color: #b0453a; }
.banner-copy > p { font-size: max(21px, var(--min-text)); color: #6e5a52; }
.music-toggle { min-width: 56px; min-height: 56px; }

/* 夜（時間外）は景色が左右入れ替わる。ロゴは左へ動かさず、窓と同じ側（右）に置いたままにする（タブに重ならない） */
.holiday-logo { transform: none !important; }

/* 飾りが読み込めなかった時：景色なしでも読める */
body.xmas-plain { background: #7a2c22; }

@media (prefers-reduced-motion: reduce) { .login-spinner { animation: none; } }
