.auth-page {
  min-height: 100svh;
  padding: 48px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f8fafc;
  background-image: 
    radial-gradient(circle at 12% 8%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 88% 20%, rgba(14, 165, 233, 0.07) 0%, transparent 40%);
  color: #0f172a;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: #0f172a;
  transition: transform 0.2s ease;
}

.auth-brand:hover {
  transform: translateY(-1px);
}

.auth-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: #ffffff;
  box-shadow: 0 6px 18px -2px rgba(79, 70, 229, 0.35);
}

.auth-mark svg {
  width: 24px;
  height: 24px;
}

.auth-panel {
  width: 100%;
  max-width: 440px;
  margin: auto 0;
  padding: 44px 36px 32px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 24px;
  box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(0, 0, 0, 0.02);
}

.auth-panel h1 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin: 0 0 10px;
  text-wrap: balance;
}

.auth-description {
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 28px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-form label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #334155;
  text-transform: uppercase;
}

.auth-form input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: all 0.2s ease;
}

.auth-form input:focus {
  background: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.auth-form input[name=code] {
  font-size: 26px;
  letter-spacing: 0.25em;
  text-align: center;
  font-family: 'SF Mono', monospace;
}

.auth-primary {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: #ffffff;
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 6px 18px -2px rgba(79, 70, 229, 0.35);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -2px rgba(79, 70, 229, 0.45);
}

.auth-primary:disabled {
  opacity: 0.6;
  cursor: wait;
}

.auth-help {
  font-size: 12px;
  line-height: 1.6;
  color: #64748b;
  margin: 20px 0 0;
}

.auth-email {
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
  margin: 0 0 20px;
  color: #4f46e5;
}

.auth-text-button {
  display: block;
  margin: 20px auto 0;
  padding: 8px 12px;
  border: 0;
  background: none;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.auth-text-button:hover {
  color: #4f46e5;
}

.auth-message {
  font-size: 13px;
  line-height: 1.5;
  color: #e11d48;
  margin: 16px 0 0;
  min-height: 20px;
  font-weight: 550;
}

.auth-footnote {
  font-size: 12px;
  text-align: center;
  color: #94a3b8;
  margin: 24px 0 0;
}

.auth-page button:focus-visible,
.auth-page a:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 4px;
}

@media(max-width: 420px) {
  .auth-page {
    padding: 32px 16px 24px;
  }
  .auth-panel {
    padding: 32px 22px 24px;
    border-radius: 20px;
  }
  .auth-panel h1 {
    font-size: 24px;
  }
}
