:root {
  --accent-color: #4154f1;
  --accent-hover: #3446df;
  --background-color: #f6f7fb;
  --surface-color: #ffffff;
  --heading-color: #1f2937;
  --body-color: #5f6b7a;
  --muted-color: #8490a0;
  --border-color: #e3e7ed;
  --shadow: 0 20px 60px rgb(31 41 55 / 10%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--body-color);
  background:
    radial-gradient(circle at 50% 0%, rgb(65 84 241 / 8%), transparent 36rem),
    var(--background-color);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.auth-panel {
  width: min(100%, 420px);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 1.75rem;
  color: var(--heading-color);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--accent-color);
  border-radius: 11px;
  box-shadow: 0 8px 20px rgb(65 84 241 / 25%);
}

.brand-mark svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.auth-card {
  padding: 2.5rem;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.auth-card-header {
  margin-bottom: 2rem;
  text-align: center;
}

.auth-card-header h1 {
  margin: 0 0 0.55rem;
  color: var(--heading-color);
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.auth-card-header p {
  margin: 0;
  font-size: 0.925rem;
  line-height: 1.65;
}

.enter-button {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--accent-color);
  border: 1px solid var(--accent-color);
  border-radius: 0.5rem;
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.enter-button:hover {
  color: #fff;
  background: var(--accent-hover);
  box-shadow: 0 8px 20px rgb(65 84 241 / 25%);
}

.google-button {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--heading-color);
  background: var(--surface-color);
  border: 1px solid #cfd5de;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.google-button:hover {
  color: var(--heading-color);
  background: var(--background-color);
  border-color: #b4bdc9;
  box-shadow: 0 4px 12px rgb(31 41 55 / 7%);
}

.google-button:focus-visible {
  outline: 3px solid rgb(65 84 241 / 20%);
  outline-offset: 2px;
}

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

.auth-alert {
  margin-bottom: 1.5rem;
  padding: 0.8rem 1rem;
  border: 1px solid;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.5;
}

.auth-alert-error {
  color: #9f2d2d;
  background: #fff4f4;
  border-color: #f3cccc;
}

.auth-alert-success {
  color: #1f7044;
  background: #f0faf4;
  border-color: #c8ead5;
}

.signed-in-account {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--background-color);
  border-radius: 0.5rem;
  text-align: center;
}

.signed-in-account strong {
  color: var(--heading-color);
  font-size: 0.9rem;
}

.signed-in-account span {
  color: var(--muted-color);
  font-size: 0.8rem;
}

.logout-button {
  width: 100%;
  height: 44px;
  color: white;
  background: var(--accent-color);
  border: 0;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

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

.logout-button:focus-visible {
  outline: 3px solid rgb(65 84 241 / 20%);
  outline-offset: 2px;
}

.access-note {
  margin: 1.15rem 0 0;
  color: var(--muted-color);
  font-size: 0.75rem;
  text-align: center;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 1rem;
  margin-top: 1.5rem;
  color: var(--muted-color);
  font-size: 0.75rem;
  text-align: center;
}

footer .footer-links {
  display: inline-flex;
  gap: 1rem;
}

footer a {
  color: var(--muted-color);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 575.98px) {
  .auth-layout {
    padding: 1.25rem;
  }

  .auth-card {
    padding: 2rem 1.5rem;
  }
}
