:root {
  color-scheme: dark;
  --green: #78bd75;
  --red: #e52b34;
  --ink: #f4f7f5;
  --muted: #9aa79f;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: #0c110e; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 6%, rgba(94, 157, 100, .18), transparent 30rem),
    radial-gradient(circle at 93% 10%, rgba(229, 43, 52, .12), transparent 28rem),
    linear-gradient(145deg, #111713, #090d0b 70%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 36px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-content: center;
  gap: 24px;
  padding: 48px 0 28px;
}

.login-card {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  overflow: hidden;
  border: 1px solid rgba(203, 221, 208, .16);
  border-radius: 26px;
  background: rgba(17, 23, 19, .92);
  box-shadow: 0 36px 100px rgba(0, 0, 0, .42), inset 0 1px rgba(255,255,255,.035);
  backdrop-filter: blur(18px);
}

.brand-panel {
  min-height: 570px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(150deg, rgba(44, 86, 51, .46), rgba(12, 18, 14, .28) 54%),
    radial-gradient(circle at 20% 18%, rgba(121, 190, 116, .16), transparent 22rem),
    #121a15;
  border-right: 1px solid rgba(203, 221, 208, .12);
}

.logo-frame {
  width: min(270px, 100%);
  height: 70px;
  display: grid;
  place-items: center;
  padding: 8px 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .28);
}

.logo-frame img { display: block; width: 100%; height: auto; }

.brand-kicker {
  margin-top: 52px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #b7c5bc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.brand-kicker span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 18px rgba(120, 189, 117, .8); }
.brand-panel h1 { margin: 15px 0 0; font-size: clamp(34px, 4.7vw, 54px); line-height: 1.02; letter-spacing: -.055em; font-weight: 780; }
.brand-panel > p { max-width: 480px; margin: 18px 0 0; color: #abb8b0; font-size: 14px; line-height: 1.65; }

.security-note {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(144, 183, 151, .18);
  border-radius: 13px;
  background: rgba(5, 10, 7, .28);
}

.security-note svg { width: 28px; height: 28px; flex: 0 0 auto; fill: #8dca8b; }
.security-note strong, .security-note span { display: block; }
.security-note strong { font-size: 11px; }
.security-note span { margin-top: 3px; color: #89978e; font-size: 10px; }

.signin-panel {
  min-width: 0;
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(155deg, rgba(28, 36, 30, .92), rgba(14, 19, 16, .96));
}

.eyebrow { color: #ef5b62; font-size: 10px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.signin-copy h2 { margin: 10px 0 0; font-size: 30px; line-height: 1.1; letter-spacing: -.035em; }
.signin-copy p { margin: 13px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.login-message {
  margin-top: 23px;
  padding: 12px 13px;
  border: 1px solid rgba(238, 80, 87, .34);
  border-radius: 10px;
  color: #ffc5c8;
  background: rgba(119, 28, 33, .25);
  font-size: 11px;
  line-height: 1.5;
}

.login-message.is-success { border-color: rgba(120,189,117,.3); color: #c8edc7; background: rgba(42, 94, 48, .23); }

.google-button {
  min-height: 56px;
  margin-top: 28px;
  display: grid;
  grid-template-columns: 24px 1fr 20px;
  align-items: center;
  gap: 12px;
  padding: 0 17px;
  border: 1px solid #dfe5e1;
  border-radius: 12px;
  color: #172019;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.google-button:hover { transform: translateY(-2px); background: #f7faf8; box-shadow: 0 16px 34px rgba(0, 0, 0, .28); }
.google-button:focus-visible { outline: 3px solid rgba(120, 189, 117, .6); outline-offset: 4px; }
.google-button svg { width: 23px; height: 23px; }
.google-button .arrow { color: #68746c; font-size: 18px; }

.trust-row { margin-top: 23px; display: flex; flex-wrap: wrap; gap: 16px; color: #99a69e; font-size: 10px; }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row svg { width: 15px; height: 15px; fill: #73b978; }
.access-copy { margin: 32px 0 0; padding-top: 22px; border-top: 1px solid rgba(206, 221, 211, .1); color: #707e75; font-size: 10px; line-height: 1.6; }

.login-shell > footer { color: #657168; font-size: 10px; letter-spacing: .09em; text-align: center; text-transform: uppercase; }
.login-shell > footer span { margin: 0 6px; color: #8b9790; }

@media (max-width: 800px) {
  .login-shell { width: min(600px, calc(100% - 24px)); padding-top: 20px; }
  .login-card { grid-template-columns: 1fr; border-radius: 20px; }
  .brand-panel { min-height: auto; padding: 30px 28px; border-right: 0; border-bottom: 1px solid rgba(203, 221, 208, .12); }
  .logo-frame { width: 220px; height: 58px; }
  .brand-kicker { margin-top: 28px; }
  .brand-panel h1 { font-size: 34px; }
  .brand-panel > p { font-size: 12px; }
  .security-note { display: none; }
  .signin-panel { padding: 34px 28px 38px; }
}

@media (max-width: 420px) {
  .brand-panel, .signin-panel { padding-inline: 21px; }
  .brand-panel h1 { font-size: 30px; }
  .signin-copy h2 { font-size: 26px; }
  .trust-row { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
