:root {
  color: #171719;
  background: #f6f2ee;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { min-width: 320px; min-height: 100%; }

body {
  min-height: 100svh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(circle at 50% 22%, rgba(230, 64, 50, 0.11), transparent 28rem),
    linear-gradient(180deg, #fbf9f7 0%, #f4efea 100%);
}

a { color: inherit; text-underline-offset: 3px; }

button, a { -webkit-tap-highlight-color: transparent; }

.login-skip {
  position: fixed;
  z-index: 10;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  color: #fff;
  background: #171719;
  transform: translateY(-150%);
}

.login-skip:focus { transform: translateY(0); }

.login-header,
.login-footer {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.login-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 25px;
  font-weight: 780;
  letter-spacing: -0.045em;
}

.login-brand img { width: 36px; height: 36px; object-fit: contain; }

.login-back,
.login-guest {
  font-size: 14px;
  font-weight: 650;
}

.login-back { color: #5f5a57; }

.login-main {
  display: grid;
  place-items: center;
  padding: 32px 24px 56px;
}

.login-card {
  position: relative;
  width: min(100%, 480px);
  padding: clamp(30px, 5vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(30, 25, 23, 0.12);
  border-radius: 28px;
  background: rgba(255, 253, 251, 0.9);
  box-shadow: 0 30px 90px rgba(60, 33, 29, 0.13), inset 0 1px 0 #fff;
  backdrop-filter: blur(20px);
}

.login-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #111114 0 38%, #e64032 38% 100%);
  content: "";
}

.login-mark {
  width: 56px;
  height: 56px;
  margin-bottom: 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 23, 25, 0.1);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(34, 21, 19, 0.1);
}

.login-mark img { width: 42px; height: 42px; object-fit: contain; }

.login-eyebrow {
  color: #ae3028;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.login-card h1 {
  margin: 10px 0 13px;
  font-size: clamp(36px, 7vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.052em;
}

.login-lead {
  margin: 0;
  color: #66605d;
  font-size: 16px;
  line-height: 1.55;
}

.login-action {
  margin-top: 30px;
  padding-bottom: 27px;
  border-bottom: 1px solid rgba(23, 23, 25, 0.11);
}

.login-google {
  width: 100%;
  min-height: 48px;
  overflow: hidden;
}

.login-google > div,
.login-google iframe { max-width: 100% !important; }

.login-status {
  min-height: 21px;
  margin: 12px 0 0;
  color: #706a67;
  font-size: 13px;
  line-height: 1.55;
}

.login-status[data-kind="error"] { color: #a3201a; }
.login-status[data-kind="success"] { color: #17623d; }

.login-retry {
  min-height: 48px;
  margin-top: 10px;
  padding: 0 18px;
  border: 1px solid #b9322a;
  border-radius: 10px;
  color: #fff;
  background: #b9322a;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.login-local-note {
  display: grid;
  gap: 5px;
  margin-top: 24px;
  padding: 16px 17px;
  border: 1px solid rgba(174, 48, 40, 0.14);
  border-radius: 14px;
  background: #fff6f3;
}

.login-local-note strong { font-size: 14px; }
.login-local-note span { color: #6e625e; font-size: 13px; line-height: 1.5; }

.login-guest {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 19px;
  color: #272526;
}

.login-privacy {
  margin: 17px 0 0;
  color: #79726e;
  font-size: 12px;
  line-height: 1.55;
}

.login-footer {
  min-height: 68px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 22px;
  color: #827b77;
  font-size: 12px;
}

.login-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
.login-footer nav > a,
.login-footer nav > span > a { color: #413d3b; }

:focus-visible {
  outline: 3px solid rgba(230, 64, 50, 0.45);
  outline-offset: 4px;
  border-radius: 5px;
}

[hidden] { display: none !important; }

@media (max-width: 620px) {
  .login-header, .login-footer { width: calc(100% - 32px); }
  .login-header { min-height: 72px; }
  .login-brand { font-size: 23px; }
  .login-brand img { width: 32px; height: 32px; }
  .login-back { font-size: 13px; }
  .login-main { align-items: start; padding: 22px 16px 42px; }
  .login-card { padding: 30px 24px; border-radius: 22px; }
  .login-card h1 { font-size: 38px; }
  .login-footer { min-height: 60px; flex-wrap: wrap; align-content: center; }
}

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