:root {
  color-scheme: light;
  --ink: #181715;
  --muted: #66645e;
  --canvas: #f4f2ec;
  --surface: #fffefa;
  --line: #e2ded5;
  --gold: #f1bf32;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); background: radial-gradient(circle at 20% 46%, #fcf8eb 0, transparent 45%), var(--canvas); }
a { color: inherit; }

.login-page { width: min(1080px, calc(100% - 48px)); min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; padding: 52px 0 24px; }
.login-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: center; isolation: isolate; }
.brand-panel { position: relative; z-index: 1; min-height: 530px; overflow: hidden; border-radius: 26px; color: #fffefa; background: #1d1d1b; box-shadow: 0 28px 54px rgba(34, 29, 15, 0.16); }
.brand-panel-content { position: relative; z-index: 1; min-height: 530px; display: flex; flex-direction: column; padding: 47px 54px 43px; }
.brand-logo { display: block; width: 186px; height: auto; }
.brand-message { margin: auto 0; padding: 48px 0; }
h1, h2 { margin: 0; letter-spacing: -0.055em; }
h1 { max-width: 500px; font-size: clamp(3.65rem, 6vw, 5.4rem); line-height: 1.01; font-weight: 780; }
h1 span { color: var(--gold); }
.brand-footer { display: flex; align-items: center; gap: 12px; color: #d5d2c9; font-size: 0.72rem; font-weight: 750; letter-spacing: 0.07em; text-transform: uppercase; }
.brand-footer-line { width: 25px; height: 2px; background: var(--gold); }
.spotlight-art { position: absolute; right: -155px; bottom: -198px; width: 495px; height: 495px; border: 1px solid rgba(241, 191, 50, 0.32); border-radius: 50%; background: radial-gradient(circle, rgba(241, 191, 50, 0.11), rgba(241, 191, 50, 0.015) 62%, transparent 70%); pointer-events: none; }
.spotlight-art span:first-child { position: absolute; inset: 65px; border: 1px solid rgba(241, 191, 50, 0.22); border-radius: 50%; }
.spotlight-art span:last-child { position: absolute; inset: 135px; border: 1px solid rgba(241, 191, 50, 0.18); border-radius: 50%; }

.signin-card { min-height: 500px; display: flex; align-items: center; margin-left: -42px; padding: 64px 54px 60px 96px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: 0 24px 60px rgba(34, 29, 15, 0.09); }
.signin-content { width: 100%; }
h2 { max-width: 345px; margin-bottom: 40px; font-size: clamp(2.45rem, 4vw, 3.25rem); line-height: 1.04; }
.google-signin { min-height: 58px; display: flex; align-items: center; gap: 13px; padding: 9px 16px 9px 10px; border: 1px solid #d0a018; border-radius: 12px; color: var(--ink); background: var(--gold); font-size: 0.93rem; font-weight: 800; text-decoration: none; transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease; }
.google-signin:hover { background: #ffd05a; transform: translateY(-1px); box-shadow: 0 9px 20px rgba(110, 75, 4, 0.16); }
.google-signin:focus-visible { outline: 3px solid #141414; outline-offset: 3px; }
.google-icon { width: 37px; height: 37px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: white; }
.google-icon svg { width: 21px; height: 21px; }
.button-arrow { width: 20px; height: 20px; margin-left: auto; flex: 0 0 auto; }
.login-footer { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 0.77rem; }
.footer-links { display: flex; align-items: center; gap: 22px; }
.footer-links a { text-underline-offset: 3px; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--ink); }

@media (max-width: 830px) {
  .login-page { width: min(100% - 36px, 610px); padding-top: 28px; }
  .login-layout { grid-template-columns: 1fr; }
  .brand-panel, .brand-panel-content { min-height: 330px; }
  .brand-panel-content { padding: 34px 36px; }
  .brand-message { padding: 30px 0; }
  .spotlight-art { right: -220px; bottom: -290px; }
  h1 { font-size: clamp(3.3rem, 9vw, 4.7rem); }
  .signin-card { min-height: auto; margin: -20px 18px 0; padding: 57px 42px 42px; }
  .login-footer { padding-top: 24px; }
}

@media (max-width: 520px) {
  .login-page { width: min(100% - 28px, 420px); padding-top: 14px; }
  .brand-panel { border-radius: 20px; }
  .brand-panel, .brand-panel-content { min-height: 300px; }
  .brand-panel-content { padding: 30px 28px; }
  .brand-logo { width: 157px; }
  .brand-message { padding: 26px 0; }
  h1 { font-size: clamp(3rem, 13.5vw, 4.1rem); }
  .signin-card { margin: -14px 10px 0; padding: 45px 25px 30px; border-radius: 19px; }
  h2 { font-size: clamp(2.1rem, 9vw, 2.75rem); }
  .login-footer { align-items: flex-start; flex-direction: column; gap: 12px; padding: 22px 5px 14px; }
  .footer-links { flex-wrap: wrap; gap: 11px 19px; }
}

@media (max-width: 360px) {
  .google-signin { gap: 8px; padding-right: 10px; font-size: 0.82rem; white-space: nowrap; }
  .google-icon { width: 32px; height: 32px; }
  .button-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .google-signin { transition: none; }
  .google-signin:hover { transform: none; }
}

@media (forced-colors: active) {
  .brand-panel, .signin-card, .google-signin { border: 1px solid CanvasText; }
  .spotlight-art { display: none; }
}
