.login-page { min-height: 100svh; display: flex; flex-direction: column; }
.login-page .page-width { width: min(1440px, calc(100% - 72px)); }
.auth-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 90px; border-bottom: 1.5px solid var(--ink); }
.auth-header .wordmark { font-size: 37px; gap: 15px; }
.auth-header .wordmark svg { width: 43px; height: 33px; }
.auth-back { display: inline-flex; align-items: center; gap: 12px; padding-block: 12px; font-size: 19px; font-weight: 650; }
.auth-back svg { width: 26px; height: 26px; }
.auth-back:is(:hover, :focus-visible) span { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 6px; }
.auth-layout { flex: 1; display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 78px; padding: 58px 14px 40px; }
.auth-story { align-self: center; min-width: 0; }
.auth-story h2 { margin-bottom: 20px; font-size: clamp(45px, 5.1vw, 78px); font-weight: 900; line-height: 1.34; letter-spacing: -.04em; text-wrap: initial; }
.auth-story h2 span { display: block; }
.auth-story-copy > p { font-size: clamp(17px, 1.65vw, 24px); line-height: 1.8; }
.auth-welcome { width: 111%; max-width: none; margin: 18px -6% 0; mix-blend-mode: multiply; }
.auth-panel { position: relative; min-width: 0; width: 100%; max-width: 560px; justify-self: center; padding-block: 4px 16px; }
.auth-panel::before { content: ''; position: absolute; top: 0; bottom: 0; left: -39px; width: 1px; background: var(--line); }
.auth-panel h1 { margin: 0 0 9px; font-size: clamp(38px, 3.65vw, 56px); line-height: 1.45; font-weight: 900; letter-spacing: -.035em; text-wrap: balance; }
.auth-panel h1:focus { outline: 0; }
.auth-intro { margin-bottom: 30px; font-size: 19px; line-height: 1.8; }
.auth-mode-note { border: 1px solid var(--line); padding: 10px 13px; margin-bottom: 20px; font-size: 14px; line-height: 1.8; }
.line-login { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 18px; width: 100%; min-height: 66px; border: 0; border-radius: 3px; padding: 12px 24px; background: #06c755; color: var(--ink); font-size: 24px; font-weight: 800; line-height: 1.5; }
.line-login img { width: 40px; height: 40px; object-fit: contain; }
.line-login span { text-align: center; white-space: nowrap; }
.line-login:is(:hover, :focus-visible) { background: #05b34d; }
.line-login:active { background: #04913e; }
.auth-divider { display: flex; align-items: center; gap: 20px; margin-block: 27px; font-size: 18px; line-height: 1.6; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1.5px; background: var(--ink); flex: 1; }
.auth-label { display: block; margin-bottom: 10px; font-size: 19px; font-weight: 750; }
.email-field { position: relative; }
.email-field > svg { position: absolute; top: 50%; left: 19px; width: 27px; height: 24px; transform: translateY(-50%); pointer-events: none; }
.email-field input { display: block; width: 100%; min-width: 0; min-height: 61px; padding: 12px 16px 12px 63px; border: 1.5px solid var(--ink); border-radius: 3px; background: transparent; color: var(--ink); caret-color: var(--blue); font: 450 21px/1.6 var(--body); }
.email-field input::placeholder { color: var(--muted); opacity: 1; }
.email-field input[aria-invalid=true] { border-color: #a3261c; }
.auth-primary { display: flex; width: 100%; min-height: 62px; margin-top: 24px; padding: 12px 20px; gap: 24px; background: var(--yellow); font-size: 23px; line-height: 1.6; }
.auth-primary:is(:hover, :focus-visible) { background: #ffd45f; }
.auth-primary:disabled { background: #eeece7; color: #62605b; border-color: #c4c0b8; cursor: not-allowed; transform: none; }
.auth-primary svg { width: 28px; height: 28px; }
.auth-hint { margin-top: 10px; font-size: 14px; line-height: 1.8; }
.auth-trial { display: flex; margin: 27px auto 0; font-size: 21px; font-weight: 750; }
.auth-account-note { max-width: 48ch; margin: 23px auto 0; font-size: 13px; line-height: 1.8; text-align: center; color: var(--muted); }
.auth-account-note summary { cursor: pointer; text-underline-offset: 4px; }
.auth-account-note[open] summary { margin-bottom: 9px; }
.auth-account-note p { text-align: start; }
.auth-feedback, .auth-error { margin-top: 20px; padding: 12px 15px; border: 1px solid var(--line); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.auth-error { color: #8e2119; border-color: #ba625a; background: #fff4ef; }
.field-error { margin-top: 8px; color: #8e2119; font-size: 13px; line-height: 1.8; }
.verify-letter { display: block; width: 90px; height: 90px; margin: 0 auto 24px; stroke-width: 2.5; }
#verify-view { padding-top: 8px; }
#verify-view h1 { font-size: clamp(34px, 3vw, 46px); }
.verify-intro { margin-bottom: 3px; }
.recipient { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin-bottom: 28px; }
.recipient strong { min-width: 0; overflow-wrap: anywhere; font-size: 20px; line-height: 1.7; }
.recipient .text-link { font-size: 15px; font-weight: 500; }
.otp-control { position: relative; isolation: isolate; }
.otp-control input { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 20px; cursor: text; }
.otp-slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.otp-slots span { display: flex; align-items: center; justify-content: center; min-height: 74px; aspect-ratio: .88; border: 1.5px solid var(--ink); border-radius: 5px; font-size: 36px; line-height: 1; font-weight: 750; font-variant-numeric: tabular-nums; }
.otp-control:focus-within .otp-slots span[data-active=true] { outline: 3px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.otp-control[data-invalid=true] .otp-slots span { border-color: #a3261c; }
.no-code { margin-top: 20px; text-align: center; font-size: 14px; }
.resend-code { display: block; margin: 8px auto 0; min-height: 44px; border: 0; padding: 8px 12px; background: transparent; font-size: 16px; text-decoration: underline; text-underline-offset: 5px; }
.resend-code:is(:hover, :focus-visible):not(:disabled) { background: var(--yellow); }
.resend-code:disabled { color: var(--muted); text-decoration: none; cursor: not-allowed; }
.verify-back { display: flex; margin: 35px auto 0; font-size: 16px; }
.auth-mobile-art { display: none; background-image: url('/media/landing/process.webp'); background-size: 300% 100%; background-repeat: no-repeat; mix-blend-mode: multiply; }
.mobile-art-pair { background-position: 100% 0; }
.mobile-art-person { background-position: 0% 0; }
.auth-logout { display: flex; margin: 26px auto 0; }
.auth-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 78px; padding-block: 18px; border-top: 1.5px solid var(--ink); }
.auth-footer .wordmark { font-size: 25px; }
.auth-footer p { font-size: 17px; }
.auth-noscript { padding-block: 20px; font-size: 14px; }
@media (max-width: 1200px) {
  .auth-layout { gap: 62px; grid-template-columns: 1.15fr 1fr; padding-block: 48px 35px; }
  .auth-panel::before { left: -31px; }
  .auth-story h2 { font-size: 5vw; }
  .auth-story-copy > p { font-size: 18px; }
  .auth-panel h1 { font-size: 42px; }
  .auth-intro { font-size: 16px; margin-bottom: 24px; }
  .line-login { font-size: 20px; min-height: 60px; padding: 10px 18px; gap: 10px; }
  .line-login img { width: 34px; height: 34px; }
  .auth-divider { font-size: 16px; margin-block: 24px; }
  .auth-label { font-size: 17px; }
  .email-field input { font-size: 19px; min-height: 57px; padding-left: 55px; }
  .email-field > svg { left: 16px; width: 24px; }
  .auth-primary { font-size: 20px; min-height: 58px; gap: 18px; }
  .auth-hint { font-size: 13px; }
  .auth-trial { font-size: 19px; margin-top: 23px; }
  .auth-account-note { font-size: 12px; }
}
@media (max-width: 800px) {
  .login-page .page-width { width: calc(100% - 44px); }
  .auth-header { min-height: 82px; }
  .auth-header .wordmark { font-size: 30px; gap: 10px; }
  .auth-header .wordmark svg { width: 34px; height: 27px; }
  .auth-back { font-size: 15px; gap: 8px; }
  .auth-back svg { width: 23px; height: 23px; }
  .auth-layout { grid-template-columns: 1fr; padding: 42px 0 30px; gap: 0; }
  .auth-story { display: none; }
  .auth-panel { max-width: 460px; padding: 0; }
  .auth-panel::before { display: none; }
  .auth-panel h1 { font-size: 38px; }
  .auth-intro { font-size: 17px; }
  .auth-mobile-art { display: block; width: 210px; height: 195px; margin: 12px auto 0; }
  .auth-account-note { margin-top: 10px; }
  .line-login { font-size: 21px; }
  .auth-primary { font-size: 21px; }
  .auth-footer { max-width: 460px; min-height: 72px; }
  .auth-footer p { font-size: 14px; }
  .auth-footer .wordmark { font-size: 23px; }
}
@media (max-width: 540px) {
  .login-page .page-width { width: calc(100% - 36px); }
  .auth-header { min-height: 77px; gap: 12px; }
  .auth-header .wordmark { font-size: 30px; }
  .auth-back { min-width: 44px; min-height: 44px; justify-content: end; padding: 8px 0 8px 8px; }
  .auth-back span { display: none; }
  .auth-back svg { width: 27px; height: 27px; }
  .auth-layout { padding-top: 29px; padding-bottom: 24px; }
  .auth-panel h1 { font-size: 34px; margin-bottom: 6px; }
  .auth-intro { font-size: 16px; line-height: 1.8; margin-bottom: 25px; }
  .auth-mode-note { font-size: 14px; margin-bottom: 17px; padding: 9px 11px; }
  .line-login { min-height: 58px; font-size: 19px; grid-template-columns: 35px minmax(0,1fr); gap: 8px; padding: 10px 16px; }
  .line-login img { width: 34px; height: 34px; }
  .auth-divider { font-size: 16px; margin-block: 24px; gap: 16px; }
  .auth-label { font-size: 17px; margin-bottom: 8px; }
  .email-field input { min-height: 54px; font-size: 17px; padding: 11px 12px; }
  .email-field > svg { display: none; }
  .auth-primary { min-height: 55px; margin-top: 20px; padding: 10px 12px; gap: 16px; font-size: 19px; }
  .auth-primary svg { width: 24px; height: 24px; }
  .auth-hint { font-size: 12px; line-height: 1.8; }
  .auth-trial { font-size: 18px; margin-top: 21px; }
  .auth-mobile-art { width: 190px; height: 165px; margin-top: 6px; }
  .auth-account-note { margin-top: 0; font-size: 12px; }
  .verify-letter { width: 76px; height: 76px; margin-top: 7px; margin-bottom: 21px; }
  #verify-view h1 { font-size: 29px; line-height: 1.5; }
  .verify-intro { font-size: 16px; margin-bottom: 5px; }
  .recipient { margin-bottom: 26px; gap: 2px 12px; }
  .recipient strong { font-size: 17px; }
  .recipient .text-link { font-size: 14px; }
  .otp-slots { gap: 9px; }
  .otp-slots span { min-height: 58px; font-size: 31px; border-radius: 5px; }
  .no-code { font-size: 12px; margin-top: 17px; }
  .resend-code { font-size: 15px; margin-top: 4px; }
  .verify-back { font-size: 15px; margin-top: 5px; }
  .auth-feedback, .auth-error { font-size: 12px; margin-top: 17px; padding: 10px 12px; }
  .auth-footer { min-height: 66px; padding-block: 15px; }
  .auth-footer .wordmark { font-size: 22px; }
  .auth-footer p { font-size: 13px; }
}
@media (max-width: 360px) {
  .line-login { font-size: 16px; padding-inline: 12px; gap: 5px; }
  .auth-primary { font-size: 16px; gap: 12px; }
  .auth-panel h1 { font-size: 31px; }
  #verify-view h1 { font-size: 26px; }
  .otp-slots { gap: 7px; }
  .otp-slots span { min-height: 52px; font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-page * { scroll-behavior: auto; }
}
