:root {
  color-scheme: light only;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #374151;
  background: #fefce8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input {
  font: inherit;
}

.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: linear-gradient(to bottom, #fefce8, #fef9c3);
}

.auth-card {
  width: 100%;
  max-width: 448px;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.auth-header {
  padding: 32px 24px;
  text-align: center;
  color: #fff;
  background: #16a34a;
  border-bottom: 1px solid #15803d;
}

.auth-logo {
  display: block;
  width: 192px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 16px;
}

.auth-title {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

.auth-subtitle {
  margin: 8px 0 0;
  color: #dcfce7;
  font-size: 14px;
  line-height: 20px;
}

.auth-body {
  padding: 32px 24px;
}

.auth-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.auth-alert p {
  margin: 0;
}

.auth-alert__icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.auth-alert--error {
  color: #991b1b;
  background: #fef2f2;
}

.auth-alert--error .auth-alert__icon {
  color: #f87171;
}

.auth-alert--success {
  color: #166534;
  background: #f0fdf4;
}

.auth-alert--success .auth-alert__icon {
  color: #4ade80;
}

.auth-form {
  display: grid;
  gap: 20px;
}

.auth-field label {
  display: block;
  margin-bottom: 4px;
  color: #374151;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.auth-field input {
  display: block;
  width: 100%;
  padding: 8px 12px;
  color: #111827;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
  font-size: 14px;
  line-height: 20px;
  appearance: none;
}

.auth-field input::placeholder {
  color: #9ca3af;
}

.auth-field input:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgb(34 197 94 / 0.2);
}

.auth-forgot {
  margin-top: -4px;
  text-align: right;
  font-size: 14px;
}

.auth-forgot a,
.auth-help a {
  color: #16a34a;
  font-weight: 500;
  text-decoration: none;
}

.auth-forgot a:hover,
.auth-help a:hover {
  color: #22c55e;
  text-decoration: underline;
}

.auth-submit {
  width: 100%;
  padding: 8px 16px;
  color: #fff;
  background: #eab308;
  border: 1px solid transparent;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 150ms ease-in-out, box-shadow 150ms ease-in-out;
}

.auth-submit:hover {
  background: #ca8a04;
}

.auth-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #eab308;
}

.auth-help {
  margin-top: 24px;
  color: #4b5563;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
}

.auth-help__label {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  color: #6b7280;
}

.auth-help__label::before,
.auth-help__label::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #d1d5db;
}

.auth-help__label span {
  padding: 0 8px;
}

.auth-help p {
  margin: 0;
}

@media (max-width: 480px) {
  .auth-page {
    align-items: flex-start;
    padding: 16px 12px;
  }

  .auth-header,
  .auth-body {
    padding-left: 20px;
    padding-right: 20px;
  }
}
