:root {
  --accent: #32c5b0;
  --accent-hover: #2dbfa8;
  --text: #111827;
  --muted: #6b7280;
  --danger: #ef4444;
  --card: #ffffff;
  --page-bg: #f0f0f2;
  --input-border: #e5e7eb;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.auth-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text);
  background: var(--page-bg);
}

.auth-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.9) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.04) 0%, transparent 50%),
    var(--page-bg);
  pointer-events: none;
}

.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.auth-back {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.auth-back:hover { color: var(--text); }

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 24px;
  padding: 2.25rem 2rem 2rem;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.04),
    0 20px 50px rgba(0, 0, 0, 0.08);
}

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

.auth-brand {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.auth-header h1 {
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  font-size: 0.9375rem;
  color: var(--muted);
  font-weight: 400;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.field input {
  height: 48px;
  padding: 0 0.875rem;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(50, 197, 176, 0.2);
}

.error {
  font-size: 0.875rem;
  color: var(--danger);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  text-align: left;
}

.btn-primary {
  height: 48px;
  margin-top: 0.25rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #0c1222;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-primary:active:not(:disabled) { transform: scale(0.99); }
.btn-primary:disabled { opacity: 0.65; cursor: not-allowed; }

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

.auth-footer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

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

@media (max-width: 480px) {
  .auth-card {
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: 20px;
  }
  .auth-back { top: 1rem; left: 1rem; }
}
