/* Auth pages — warm pro SaaS (login / signup) */

body {
  font-family: var(--font-body);
  background: var(--ambient-radial), var(--ambient-radial-teal), var(--bg) !important;
  color: var(--text-1) !important;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.cosmic-background,
.stars, .stars2, .stars3 {
  display: none !important;
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-1);
}

.auth-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--brand-primary-dim);
  border: 1px solid color-mix(in srgb, var(--brand-primary) 30%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-primary);
}

.auth-brand-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.auth-brand-sub {
  font-size: 11px;
  color: var(--text-3);
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}

.auth-card-wrap {
  width: 100%;
  max-width: 28rem;
}

.auth-welcome {
  text-align: center;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 500;
  color: var(--text-1);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass-card,
.glass {
  background-color: var(--s1) !important;
  backdrop-filter: none !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-md) !important;
  border-radius: var(--r-lg) !important;
  padding: 28px !important;
}

header.border-gray-800,
.border-gray-800 {
  border-color: var(--border) !important;
}

.text-white { color: var(--text-1) !important; }
.text-gray-200, .text-gray-300, .text-gray-400 { color: var(--text-2) !important; }
.text-gray-600, .text-gray-500 { color: var(--text-3) !important; }
.text-indigo-400, .link { color: var(--brand-primary) !important; }
.text-red-400 { color: #c44 !important; }
.bg-gray-800, .h-px.bg-gray-800 { background: var(--border) !important; height: 1px; border: none; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1, .flex-grow { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-4xl { max-width: 56rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.py-5 { padding-top: 20px; padding-bottom: 20px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.p-3 { padding: 12px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.mt-1 { margin-top: 4px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.my-4 { margin-top: 16px; margin-bottom: 16px; }
.text-center { text-align: center; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-xl { font-size: 18px; }
.text-2xl { font-size: 22px; font-family: var(--font-display); }
.font-bold, .font-extrabold { font-weight: 700; }
.font-semibold, .font-medium { font-weight: 600; }
.font-extrabold { font-weight: 800; }
.tracking-wide, .tracking-wider { letter-spacing: 0.04em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.6; }
.block { display: block; }
.relative { position: relative; }
.absolute { position: absolute; }
.right-3 { right: 12px; }
.top-1\/2 { top: 50%; }
.-translate-y-1\/2 { transform: translateY(-50%); }
.pr-14 { padding-right: 56px; }
.rounded-lg { border-radius: var(--r-md); }
.rounded-xl { border-radius: var(--r-md); }
.rounded-2xl { border-radius: var(--r-lg); }
.rounded-full { border-radius: var(--r-pill); }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-6 > * + * { margin-top: 24px; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: 1fr; }
.hidden { display: none; }

@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 24px; padding-right: 24px; }
  .sm\:flex { display: flex; }
}

@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 32px; padding-right: 32px; }
}

input[type="email"],
input[type="password"],
input[type="text"],
.field {
  background: var(--bg) !important;
  border: 1px solid var(--border-md) !important;
  color: var(--text-1) !important;
  border-radius: var(--r-md) !important;
  width: 100%;
  box-sizing: border-box;
}

input:focus {
  outline: none;
  border-color: var(--brand-primary) !important;
  box-shadow: 0 0 0 2px var(--brand-primary-dim);
}

button[type="submit"],
#login-button,
.btn-cta {
  border-radius: var(--r-pill) !important;
  background: var(--brand-primary) !important;
  color: #fff !important;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: transform var(--ease-ui), box-shadow var(--ease-ui);
}

.btn-cta:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-violet);
}

.btn-cta:disabled { opacity: 0.5; cursor: not-allowed; }

.lang-toggle {
  display: inline-flex;
  gap: 4px;
}

.lang-toggle button {
  background: transparent;
  border: 1px solid var(--border-md);
  padding: 4px 10px;
  cursor: pointer;
  font-weight: 600;
  border-radius: var(--r-sm);
  color: var(--text-3);
  font-size: 12px;
}

.lang-toggle button.active {
  background: var(--brand-primary-dim) !important;
  color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
}

.icon-btn {
  border: 1px solid var(--border-md);
  background: var(--s1);
  border-radius: var(--r-md);
  cursor: pointer;
  color: var(--text-1);
  transition: background var(--ease-ui);
}

.icon-btn:hover { background: var(--s2); }

.flow-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  display: inline-block;
  background: var(--s3);
}

.flow-dot.active {
  background: var(--brand-primary);
  box-shadow: var(--shadow-violet);
}

hr.flex-1, .flex-1 { flex: 1; }
hr.border-gray-600 { border: none; height: 1px; background: var(--border); }

button[data-key="signupButton"],
button.bg-transparent {
  background: transparent !important;
  border: 1px solid var(--border-md) !important;
  color: var(--text-1) !important;
  border-radius: var(--r-md) !important;
  cursor: pointer;
  padding: 12px;
  width: 100%;
}

button.bg-transparent:hover,
button[data-key="signupButton"]:hover {
  background: var(--s2) !important;
}

button.bg-white {
  background: var(--s1) !important;
  border: 1px solid var(--border-md) !important;
  color: var(--text-1) !important;
  border-radius: var(--r-md) !important;
  cursor: pointer;
  padding: 12px;
  width: 100%;
}

button.bg-white:hover { background: var(--s2) !important; }

.w-5, .w-5.h-5 { width: 20px; height: 20px; }
.w-10 { width: 40px; }
.h-10 { height: 40px; }
.w-12 { width: 48px; }
.h-12 { height: 48px; }

.auth-footer {
  text-align: center;
  padding: 24px 0;
  font-size: 13px;
  color: var(--text-3);
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .btn-cta { transition: none; }
}
