.auth-page {
  min-height: 100vh;
  background: var(--cultured);
}

.auth-container {
  width: min(100% - 30px, 520px);
  margin: 0 auto;
  padding: 60px 0;
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--cultured);
  border-radius: 8px;
  box-shadow: 0 8px 24px hsla(0, 0%, 0%, 0.08);
  padding: 30px;
}

.auth-card h1 {
  color: var(--eerie-black);
  font-size: 28px;
  margin-bottom: 10px;
}

.auth-card p {
  color: var(--sonic-silver);
  margin-bottom: 24px;
}

.auth-field {
  margin-bottom: 16px;
}

.auth-field label {
  color: var(--eerie-black);
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.auth-field input {
  border: 1px solid var(--cultured);
  border-radius: 4px;
  color: var(--eerie-black);
  font: inherit;
  padding: 12px;
  width: 100%;
}

.auth-button {
  background: var(--salmon-pink);
  border: 0;
  border-radius: 4px;
  color: var(--white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 20px;
  width: 100%;
}

.auth-google {
  margin-top: 14px;
}

.auth-card .auth-google-button,
.auth-card .auth-google-button:hover,
.auth-card .auth-google-button:active,
.auth-card .auth-google-button:focus-visible {
  color: #202124;
}

.auth-google-button {
  align-items: center;
  background: var(--white);
  border: 1px solid #dadce0;
  display: flex;
  gap: 12px;
  justify-content: center;
  min-height: 48px;
  padding: 11px 16px;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

html[data-theme="dark"] .auth-card .auth-google-button,
html[data-theme="dark"] .auth-card .auth-google-button:hover,
html[data-theme="dark"] .auth-card .auth-google-button:active,
html[data-theme="dark"] .auth-card .auth-google-button:focus-visible {
  color: #f1f3f4;
}

html[data-theme="dark"] .auth-card .auth-google-button:hover {
  background: #263449;
  border-color: #52647d;
}

html[data-theme="dark"] .auth-card .auth-google-button:active {
  background: #303f55;
}

.auth-card .auth-google-button:hover {
  background: #f8faff;
  border-color: #c5c9d0;
  box-shadow: 0 2px 5px hsla(220, 20%, 20%, 0.12);
}

.auth-card .auth-google-button:active {
  background: #f1f3f4;
  box-shadow: none;
  transform: translateY(1px);
}

.auth-card .auth-google-button:focus-visible {
  outline: 3px solid hsla(214, 82%, 56%, 0.3);
  outline-offset: 2px;
}

.auth-google-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.auth-google-button__logo {
  flex: 0 0 20px;
  height: 20px;
  width: 20px;
}

.auth-message {
  border-radius: 4px;
  margin-bottom: 18px;
  padding: 12px;
}

.auth-error {
  background: #fff0f0;
  color: #b42318;
}

.auth-success {
  background: #ecfdf3;
  color: #027a48;
}

.auth-links {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 20px;
}

.auth-links a {
  color: var(--salmon-pink);
}

@media (max-width: 480px) {
  .auth-heading {
    flex-wrap: wrap;
  }

  .auth-heading .theme-toggle {
    margin-left: auto;
  }
}
