:root {
  --page: #eaf5ff;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --text: #1d1d1f;
  --text-soft: #6e6e73;
  --blue: #0a84ff;
  --line: rgba(29, 29, 31, 0.1);
  --shadow: 0 24px 70px rgba(29, 29, 31, 0.1);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% -8%, rgba(10, 132, 255, 0.28) 0%, rgba(10, 132, 255, 0.14) 32%, rgba(10, 132, 255, 0) 60%),
    linear-gradient(180deg, #f7fbff 0%, var(--page) 62%, #dceeff 100%);
  color: var(--text);
}

button,
input {
  font: inherit;
}

.access-shell {
  display: grid;
  gap: 42px;
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.brand,
.link-row a {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

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

.access-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  align-items: center;
  gap: 32px;
}

.copy {
  display: grid;
  gap: 18px;
}

.eyebrow {
  width: fit-content;
  border: 1px solid rgba(10, 132, 255, 0.22);
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.08);
  color: var(--blue);
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
}

h1,
p {
  margin: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(44px, 8vw, 82px);
  line-height: 0.95;
}

p {
  max-width: 640px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.5;
}

.auth-card {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 20px;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  border-radius: 10px;
  background: var(--surface-soft);
  padding: 5px;
}

.mode-tab,
.primary-button,
.google-button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

.mode-tab {
  background: transparent;
  color: var(--text-soft);
}

.mode-tab.is-active {
  border-color: var(--line);
  background: #ffffff;
  color: var(--text);
}

.google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border-color: var(--line);
  background: #ffffff;
  color: var(--text);
}

.google-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #4285f4;
  font-size: 14px;
  font-weight: 900;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

form,
label,
.status-card {
  display: grid;
  gap: 10px;
}

label {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 0 12px;
}

.primary-button {
  background: var(--blue);
  color: #ffffff;
}

.primary-button:hover {
  border-color: #006fd6;
  background: #006fd6;
  box-shadow: 0 12px 26px rgba(10, 132, 255, 0.22);
  transform: translateY(-1px) scale(1.025);
}

.google-button:hover {
  border-color: rgba(10, 132, 255, 0.28);
  background: var(--surface-soft);
  box-shadow: 0 12px 26px rgba(29, 29, 31, 0.08);
  transform: translateY(-1px) scale(1.015);
}

.mode-tab:hover {
  border-color: rgba(29, 29, 31, 0.12);
  background: #ffffff;
  color: var(--text);
  transform: translateY(-1px) scale(1.025);
}

.primary-button:active,
.google-button:active,
.mode-tab:active {
  transform: translateY(0) scale(0.99);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.status-card {
  border: 1px solid rgba(10, 132, 255, 0.22);
  border-radius: 8px;
  background: rgba(10, 132, 255, 0.08);
  color: var(--text);
  padding: 12px;
}

.status-card.is-error {
  border-color: rgba(229, 72, 77, 0.28);
  background: rgba(229, 72, 77, 0.08);
}

.status-card a {
  color: var(--blue);
  font-weight: 800;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.link-row a {
  color: var(--blue);
}

@media (max-width: 780px) {
  .access-panel {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(40px, 13vw, 62px);
  }

  p {
    font-size: 16px;
  }
}
