/* CrewOn 式登入：左側深墨綠敘事牆，右側紙感表單卡 */
.auth-page { min-height: 100vh; padding: 0; overflow-x: hidden; background: var(--paper); }
.auth-brand { position: absolute; z-index: 5; top: 22px; left: 26px; color: var(--ink-cream); }
.auth-brand small { color: #88aaa9; }
.auth-layout { min-height: 100vh; margin-top: 0; display: grid; grid-template-columns: minmax(400px, 1.15fr) minmax(420px, .85fr); background: var(--paper); }
.auth-story { min-width: 0; padding: clamp(96px, 12vh, 150px) clamp(30px, 5vw, 70px) 42px; display: flex; flex-direction: column; justify-content: center; color: var(--ink-cream); background: var(--ink-panel); border-right: 2px solid var(--ink); }
.auth-story.grid-field { background-image: radial-gradient(circle, #ffffff10 0 1.2px, transparent 1.6px); background-size: 30px 30px; background-color: var(--ink-panel); }
.auth-story .eyebrow { color: #88aaa9; }
.auth-story h1 { margin: 20px 0 34px; font: 800 clamp(38px, 4.4vw, 62px)/1.22 var(--display); letter-spacing: -.03em; }
.auth-story h1 span { color: var(--mint); }
.auth-story > p:last-child { max-width: 620px; color: #c8dcda; font-size: 17px; line-height: 1.8; }
.auth-flow { max-width: 650px; margin: 22px 0 32px; display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; }
.auth-flow div { padding: 10px 12px; color: var(--ink); background: var(--mint); border: 1.5px solid var(--ink); border-radius: 10px 7px 11px 8px; box-shadow: 2px 2px 0 #081f26; font: 700 10px var(--mono); }
.auth-flow i { height: 2px; background: repeating-linear-gradient(90deg, #88aaa9 0 5px, transparent 5px 10px); }
.auth-panel { padding: clamp(30px, 5vw, 70px) clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; background: var(--paper); background-image: radial-gradient(circle at 18% 8%, #12323b09 0 1px, transparent 1.4px); background-size: 28px 28px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 5px; background: var(--paper-deep); border: 1.5px solid var(--ink); border-radius: 12px; }
.auth-tabs button { min-height: 46px; border: 1.5px solid transparent; border-radius: 9px; background: transparent; cursor: pointer; color: var(--muted); font-weight: 700; }
.auth-tabs button.active { color: var(--ink); background: var(--paper-light); border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.auth-heading { margin: 44px 0 30px; }
.auth-heading h2 { position: relative; width: fit-content; margin: 15px 0 10px; font: 800 clamp(28px, 3.2vw, 40px)/1.2 var(--display); letter-spacing: -.02em; }
.auth-heading h2::after { content: ""; position: absolute; z-index: -1; left: 4px; right: -5px; bottom: 2px; height: 8px; background: var(--mint); border-radius: 50%; opacity: .72; rotate: -1deg; }
.auth-heading > p:last-child { color: var(--muted); line-height: 1.7; }
#auth-form { display: grid; gap: 18px; }
#auth-form label { display: grid; gap: 8px; color: var(--muted); font: 700 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
#auth-form input { min-height: 52px; padding: 13px; background: var(--paper-light); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); outline: 0; font-family: var(--body); }
#auth-form input:focus { border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.auth-fine { margin-top: 28px; color: var(--ink-faint); font: 500 8px/1.6 var(--mono); letter-spacing: .1em; }
@media (max-width: 840px) {
    .auth-layout { grid-template-columns: 1fr; }
    .auth-story { min-height: 420px; padding-top: 108px; border-right: 0; border-bottom: 2px solid var(--ink); }
    .auth-panel { min-height: 620px; }
}
@media (max-width: 520px) {
    .auth-brand { top: 14px; left: 16px; }
    .auth-story { min-height: 380px; padding: 96px 20px 40px; }
    .auth-story h1 { font-size: 34px; }
    .auth-flow div { padding: 8px 6px; font-size: 8px; }
    .auth-panel { min-height: 570px; padding: 42px 20px; }
    .auth-heading { margin-top: 34px; }
}

/* Authentication must remain comfortable on phones and desktop. */
.auth-tabs button { font-size: 15px; }
.auth-flow div { font-size: 12px; }
#auth-form label { font-size: 12px; line-height: 1.45; }
#auth-form input { font-size: 16px; }
.auth-fine { font-size: var(--text-micro); line-height: 1.75; }
@media (max-width: 520px) { .auth-flow div { font-size: var(--text-micro); } }
