:root {
  color-scheme: light;
  --page: #f6f8fb;
  --panel: #ffffff;
  --text: #1d2433;
  --muted: #667085;
  --line: #d8dee8;
  --line-strong: #c7ceda;
  --accent: #2563eb;
  --accent-dark: #1749b6;
  --shadow: 0 24px 70px rgba(31, 45, 61, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, #ffffff 0%, var(--page) 48%, #eef3f9 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.shell {
  display: grid;
  min-height: 100vh;
  padding: 28px;
  place-items: center;
}

.auth-panel {
  width: min(100%, 440px);
  padding: 38px;
  border: 1px solid rgba(216, 222, 232, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow);
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  border-radius: 14px;
  color: #ffffff;
  background: #1d2433;
  font-size: 20px;
  font-weight: 750;
  place-items: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.05;
}

.lede {
  margin: 14px 0 28px;
  color: var(--muted);
  font-size: 1rem;
}

.google-button {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid #dadce0;
  border-radius: 6px;
  color: #3c4043;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.16);
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.google-button:hover {
  border-color: #d2e3fc;
  background: #f8fbff;
  box-shadow:
    0 1px 2px rgba(60, 64, 67, 0.24),
    0 0 0 3px rgba(66, 133, 244, 0.12);
}

.google-button:active {
  transform: translateY(1px);
}

.google-button:focus-visible,
.logout-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 3px;
}

.google-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.avatar,
.avatar-fallback {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.avatar {
  object-fit: cover;
}

.avatar-fallback {
  display: grid;
  color: #ffffff;
  background: var(--accent);
  font-size: 1.45rem;
  font-weight: 760;
  place-items: center;
}

.profile h1 {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  color: #0f766e;
  font-size: 0.83rem;
  font-weight: 700;
}

.status::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #14b8a6;
  content: "";
}

.details {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fbfd;
}

.detail {
  min-width: 0;
}

.detail-label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.detail-value {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.96rem;
}

.actions {
  margin-top: 22px;
}

.logout-button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    transform 0.15s ease;
}

.logout-button:hover {
  background: var(--accent-dark);
}

.logout-button:active {
  transform: translateY(1px);
}

@media (max-width: 520px) {
  .shell {
    padding: 18px;
  }

  .auth-panel {
    padding: 28px;
    border-radius: 14px;
  }

  .profile {
    align-items: flex-start;
    flex-direction: column;
  }
}
