* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: #07131f; color: #f7f3e9; font-family: Arial, Helvetica, sans-serif; }
.login-shell { min-height: 100vh; min-height: 100svh; display: -webkit-flex; display: flex; overflow: hidden; }
.login-story { position: relative; width: 62%; min-height: 100vh; min-height: 100svh; padding: clamp(28px, 4.5vw, 72px); display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-justify-content: space-between; justify-content: space-between; background: linear-gradient(90deg, rgba(4,14,22,.82) 0%, rgba(4,14,22,.24) 70%, rgba(4,14,22,.58) 100%), linear-gradient(0deg, rgba(2,10,16,.72), transparent 55%), url('login-background.jpg') center center / cover no-repeat; }
.login-story:after { content: ''; position: absolute; inset: 16px; border: 1px solid rgba(241,201,104,.34); border-radius: 22px; pointer-events: none; }
.login-brand, .login-eyebrow { position: relative; z-index: 1; font-weight: 700; letter-spacing: .18em; }
.login-brand { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; gap: 12px; font-size: .78rem; }
.brand-star { color: #f1c968; font-size: 1.4rem; }
.login-story-copy { position: relative; z-index: 1; max-width: 690px; padding-bottom: 8vh; }
.login-eyebrow { color: #d9c58c; font-size: .7rem; }
.login-story h1 { max-width: 650px; margin: 18px 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(3rem, 6.5vw, 7rem); font-weight: 400; line-height: .95; letter-spacing: -.045em; }
.login-story p { max-width: 580px; margin: 0; color: rgba(255,255,255,.8); font-size: clamp(1rem, 1.3vw, 1.25rem); line-height: 1.6; }
.login-time { position: absolute; z-index: 1; right: 7%; bottom: 7%; display: -webkit-flex; display: flex; -webkit-align-items: flex-end; align-items: flex-end; gap: 12px; color: rgba(255,255,255,.9); }
.login-time strong { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.5rem, 5vw, 5.5rem); font-weight: 400; line-height: .8; }
.login-time span { padding-bottom: 4px; color: #d9c58c; font-size: .65rem; font-weight: 700; letter-spacing: .22em; }
.login-access { width: 38%; min-height: 100vh; min-height: 100svh; padding: clamp(24px, 5vw, 80px); display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; background: radial-gradient(circle at 20% 10%, rgba(42,113,103,.18), transparent 30%), #081015; }
.login-card { width: min(100%, 430px); }
.login-card h2 { margin: 14px 0 12px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.5rem, 4vw, 4rem); font-weight: 400; }
.login-card > p { margin: 0 0 30px; color: #aeb7b5; font-size: 1rem; line-height: 1.6; }
.login-card strong { color: #f7f3e9; }
.google-access { min-height: 44px; margin: 8px 0 28px; }
.login-security { padding: 20px 0 0; display: -webkit-flex; display: flex; gap: 12px; border-top: 1px solid rgba(255,255,255,.1); color: #8e9a98; font-size: .85rem; line-height: 1.5; }
.security-icon { width: 24px; height: 24px; -webkit-flex: 0 0 24px; flex: 0 0 24px; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; border: 1px solid #61c7aa; border-radius: 50%; color: #61c7aa; }
.login-alert, .login-setup { margin: 0 0 22px; padding: 14px 16px; border-radius: 14px; font-size: .9rem; line-height: 1.45; }
.login-alert { border: 1px solid rgba(255,124,104,.45); background: rgba(112,31,29,.28); color: #ffd9d2; }
.login-setup { display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; gap: 5px; border: 1px solid rgba(241,201,104,.35); background: rgba(99,74,24,.22); color: #eadfbe; }
.login-setup code { color: #fff4cc; }
.login-footnote { width: min(100%, 430px); margin: 30px 0 0; color: #667270; font-size: .78rem; }
.pin-form label { display: block; margin: 0 0 10px; color: #d9c58c; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pin-input { width: 100%; height: 72px; padding: 0 14px 0 24px; border: 1px solid rgba(241,201,104,.44); border-radius: 16px; outline: none; background: #0b1d24; color: #f7f3e9; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: .38em; text-align: center; }
.pin-input:focus { border-color: #f1c968; box-shadow: 0 0 0 3px rgba(241,201,104,.12); }
.pin-meta { margin: 12px 0 20px; color: #8e9a98; font-size: .85rem; }
.pin-meta strong { color: #d9c58c; font-variant-numeric: tabular-nums; }
.pin-primary, .pin-secondary, .pin-link { min-height: 46px; border: 0; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; }
.pin-primary { width: 100%; padding: 0 22px; background: #f1c968; color: #101718; }
.pin-primary:hover, .pin-primary:focus { background: #ffe08f; }
.pin-actions { margin: 16px 0 26px; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-between; justify-content: space-between; gap: 12px; }
.pin-secondary, .pin-link { padding: 0 14px; background: transparent; color: #b9c7c3; }
.pin-secondary { border: 1px solid rgba(255,255,255,.14); }
.pin-secondary:disabled { cursor: not-allowed; opacity: .48; }
.pin-link { color: #d9c58c; }
.login-notice { margin: 0 0 22px; padding: 14px 16px; border: 1px solid rgba(97,199,170,.35); border-radius: 14px; background: rgba(28,94,78,.22); color: #c9f4e7; font-size: .9rem; line-height: 1.45; }
@media (max-width: 900px) {
  .login-shell { -webkit-flex-direction: column; flex-direction: column; overflow: visible; }
  .login-story, .login-access { width: 100%; min-height: auto; }
  .login-story { height: 46vh; min-height: 360px; padding: 28px; }
  .login-story-copy { padding: 0; }
  .login-story h1 { font-size: clamp(2.7rem, 10vw, 4.8rem); max-width: 600px; }
  .login-story p { display: none; }
  .login-time { display: none; }
  .login-access { min-height: 54vh; padding: 52px 28px; }
}
@media (max-width: 520px) {
  .login-story { height: 40vh; min-height: 310px; }
  .login-story:after { inset: 10px; }
  .login-story h1 { margin-bottom: 0; font-size: 2.75rem; }
  .login-access { min-height: 60vh; -webkit-justify-content: flex-start; justify-content: flex-start; }
  .login-card h2 { font-size: 2.65rem; }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { scroll-behavior: auto !important; transition: none !important; } }
