:root {
  --auth-ink: #172033;
  --auth-muted: #667085;
  --auth-border: #dfe3ea;
  --auth-surface: rgba(255, 255, 255, 0.94);
  --auth-accent: #ef4e7b;
  --auth-accent-dark: #c93666;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(247, 149, 51, 0.16), transparent 32rem),
    radial-gradient(circle at 88% 90%, rgba(80, 115, 184, 0.17), transparent 34rem),
    #f7f8fb;
  color: var(--auth-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.auth-page {
  min-height: calc(100vh - 42px);
  padding: 28px 18px 48px;
}

.auth-shell {
  width: min(100%, 460px);
  margin: 0 auto;
}

.auth-brand {
  display: block;
  width: max-content;
  margin: 0 auto 24px;
  background: linear-gradient(100deg, #f79533, #ef4e7b 45%, #5073b8 78%, #07b39b);
  background-clip: text;
  color: transparent;
  font-size: 1.75rem;
  font-weight: 850;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.auth-card {
  padding: clamp(24px, 6vw, 38px);
  border: 1px solid rgba(214, 219, 228, 0.9);
  border-radius: 22px;
  background: var(--auth-surface);
  box-shadow: 0 24px 70px rgba(32, 43, 68, 0.12);
  backdrop-filter: blur(14px);
}

.auth-eyebrow {
  margin: 0 0 8px;
  color: var(--auth-accent-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-title {
  margin: 0;
  color: var(--auth-ink);
  font-size: clamp(1.8rem, 7vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.auth-intro {
  margin: 12px 0 26px;
  color: var(--auth-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

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

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-label {
  color: #344054;
  font-size: 0.88rem;
  font-weight: 700;
}

.auth-input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--auth-border);
  border-radius: 11px;
  background: #fff;
  color: var(--auth-ink);
  font: inherit;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.auth-input:focus {
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 4px rgba(239, 78, 123, 0.12);
}

.auth-hint {
  margin: -1px 0 0;
  color: #7a8496;
  font-size: 0.78rem;
  line-height: 1.4;
}

.auth-submit {
  min-height: 50px;
  margin-top: 3px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(100deg, #f37055, #ef4e7b 48%, #a166ab);
  box-shadow: 0 12px 24px rgba(239, 78, 123, 0.22);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.auth-submit:hover {
  box-shadow: 0 15px 28px rgba(239, 78, 123, 0.28);
  transform: translateY(-1px);
}

.auth-submit:focus-visible,
.auth-secondary-button:focus-visible,
.auth-brand:focus-visible,
.auth-switch a:focus-visible {
  outline: 3px solid rgba(80, 115, 184, 0.45);
  outline-offset: 3px;
}

.auth-switch {
  margin: 22px 0 0;
  color: var(--auth-muted);
  font-size: 0.9rem;
  text-align: center;
}

.auth-switch a {
  color: var(--auth-accent-dark);
  font-weight: 750;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-errors {
  margin: 0 0 20px;
  padding: 13px 15px;
  border: 1px solid rgba(201, 54, 102, 0.24);
  border-radius: 11px;
  background: rgba(239, 78, 123, 0.08);
  color: #8d244d;
  font-size: 0.86rem;
  line-height: 1.45;
}

.auth-errors p {
  margin: 0;
  font-weight: 800;
}

.auth-errors ul {
  margin: 7px 0 0;
  padding-left: 18px;
}

.account-email {
  margin: 22px 0;
  padding: 15px 16px;
  border: 1px solid var(--auth-border);
  border-radius: 11px;
  background: #f8f9fc;
  color: #344054;
  overflow-wrap: anywhere;
}

.account-email-label {
  display: block;
  margin-bottom: 4px;
  color: var(--auth-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--auth-border);
  border-radius: 11px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.auth-secondary-button:hover {
  border-color: #b9c0cc;
  background: #f8f9fc;
}

.account-actions form {
  margin: 0;
}

.account-actions {
  display: grid;
  gap: 10px;
}

.account-actions > a {
  text-decoration: none;
}

@media (max-width: 520px) {
  .auth-page {
    padding: 20px 12px 36px;
  }

  .auth-card {
    border-radius: 17px;
  }
}
