body.login-page { display: grid; place-items: center; min-height: 100dvh; }
.login-shell { display: grid; grid-template-columns: minmax(0,1.9fr) minmax(340px,1fr); width: min(100%,1440px); min-height: min(820px,calc(100dvh - 48px)); background: var(--login-shell); border-radius: 28px; overflow: hidden; }
.login-story { display: flex; flex-direction: column; min-width: 0; }
.brand { display: flex; align-items: center; gap: 14px; font-family: var(--font-family-heading); font-size: 30px; font-weight: 600; letter-spacing: -.04em; padding: 42px 48px 0; }
.brand .app-mark { width: 34px; height: 38px; }
.login-story-copy { padding: 40px 48px 22px; position: relative; z-index: 1; }
.teleport-app .login-story h1 { font-family: var(--font-family-heading); font-size: clamp(36px,4.1vw,60px); line-height: 1.15; font-weight: 450; letter-spacing: -.04em; margin: 0; }
.brand-period { color: #dc4819; }
.login-story-copy p { font-size: 17px; color: var(--color-gray-700); line-height: 1.6; margin: 22px 0 0; }
.login-art { display: block; margin-top: auto; }
.login-art img { display: block; width: 100%; height: clamp(340px,35vw,500px); object-fit: cover; object-position: center bottom; mask-image: linear-gradient(to bottom,transparent,#000 28px); }
.login-card { display: flex; align-items: center; background: var(--surface); border-radius: 24px 0 0 24px; padding: 48px 36px; min-width: 0; }
.login-access { width: 100%; max-width: 350px; margin-inline: auto; }
.login-card h2 { font-size: 30px; font-weight: 500; line-height: 1.2; letter-spacing: -.035em; margin: 0 0 20px; }
.login-card .intro { font-size: 16px; color: var(--color-gray-600); line-height: 1.65; margin-bottom: 30px; }
.google-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px; padding: 14px; border: 1px solid var(--control-border-strong); border-radius: 10px; background: var(--surface); color: var(--color-dark); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; box-shadow: 0 2px 4px rgba(16,28,49,.03); transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease; text-decoration: none; }
.google-button:hover { background: var(--surface-muted); border-color: var(--color-dark); box-shadow: 0 4px 12px rgba(16,28,49,.08); }
.google-button:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; }
.google-button:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.google-button[aria-busy='true'] { background: var(--surface-soft); }
.google-mark { width: 22px; height: 22px; flex-shrink: 0; }
.login-promise { font-size: 13px; color: var(--color-gray-600); line-height: 1.6; margin: 18px 0 0; }
.permissions { border-top: 1px solid var(--color-gray-200); padding-top: 24px; margin-top: 32px; font-size: 13px; line-height: 1.65; color: var(--color-gray-600); }
.permissions strong { font-weight: 500; color: var(--color-dark); }
.footer-note { font-size: 12px; line-height: 1.6; color: var(--color-gray-500); margin-top: 14px; }
.login-error { color: var(--stamp-red); background: var(--stamp-red-bg); border-radius: 12px; padding: 14px; font-size: 14px; line-height: 1.5; margin-bottom: 20px; overflow-wrap: anywhere; }
@media (max-width:1000px) and (min-width:761px) { .login-shell { grid-template-columns: minmax(0,1.2fr) minmax(320px,1fr); } .brand { padding: 32px 28px 0; } .login-story-copy { padding: 54px 28px 24px; } .login-card { padding: 40px 28px; } }
@media (max-width:760px) {
    body.login-page { padding: 0; background: var(--login-shell); }
    .login-shell { display: flex; flex-direction: column; min-height: 100dvh; border-radius: 0; max-width: 600px; overflow: visible; }
    .login-story { display: contents; }
    .brand { order: 0; padding: 26px 24px 0; font-size: 25px; }
    .brand .app-mark { width: 28px; height: 32px; }
    .login-story-copy { order: 1; padding: 32px 24px 26px; }
    .teleport-app .login-story h1 { font-size: clamp(30px,7.6vw,44px); line-height: 1.18; }
    .login-story-copy p { margin-top: 16px; font-size: 15px; }
    .login-card { order: 2; margin: 0 16px; border-radius: 22px; padding: 28px 24px; }
    .login-card h2 { font-size: 25px; margin-bottom: 12px; }
    .login-card .intro { font-size: 15px; margin-bottom: 22px; }
    .permissions { margin-top: 22px; padding-top: 18px; }
    .login-art { order: 3; margin-top: 16px; }
    .login-art img { height: auto; aspect-ratio: 3/2; }
}
@media (prefers-reduced-motion: reduce) { .google-button, .teleport-app .btn { transition: none; } }
html[data-theme="dark"] .login-art img { mask-image: linear-gradient(to bottom, transparent, #000 160px); filter: brightness(.92); }
