/* Change 2.0 — Auth pages (standalone; do not rely on platform.css) */

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

html.auth-page {
  --auth-black: #000000;
  --auth-green: #22c55e;
  --auth-green-bright: #4ade80;
  --auth-green-glow: rgba(34, 197, 94, 0.15);
  --auth-green-border: rgba(34, 197, 94, 0.35);
  --auth-card: #0a0f0c;
  --auth-input: #0d1210;
  --auth-text: #f8fafc;
  --auth-muted: #94a3b8;
  --auth-dim: #64748b;
  --auth-error: #f87171;
  --auth-font: "Inter", system-ui, -apple-system, sans-serif;
}

html.auth-page,
html.auth-page body.auth-body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

html.auth-page body.auth-body {
  font-family: var(--auth-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--auth-text);
  background: var(--auth-black);
  -webkit-font-smoothing: antialiased;
}

/* Layout */
html.auth-page .auth-shell {
  display: grid;
  grid-template-columns: 1fr 440px;
  min-height: 100vh;
  background: var(--auth-black);
}

html.auth-page .auth-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 50% 80% at 100% 50%, rgba(34, 197, 94, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 50% at 0% 100%, rgba(34, 197, 94, 0.06), transparent 50%);
}

html.auth-page .auth-showcase,
html.auth-page .auth-panel {
  position: relative;
  z-index: 1;
}

/* —— Left: brand + copy —— */
html.auth-page .auth-showcase {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 2.5rem 3.5rem 2rem;
}

html.auth-page .auth-showcase-top {
  flex-shrink: 0;
  margin-bottom: 3rem;
}

html.auth-page .auth-brand {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

html.auth-page .auth-brand-logo {
  display: block;
  width: 140px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  /* Logo PNG has black matte — blend into page */
  mix-blend-mode: lighten;
}

html.auth-page .auth-showcase-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 460px;
  padding-bottom: 2rem;
}

html.auth-page .auth-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--auth-green);
}

html.auth-page .auth-headline {
  margin: 0 0 1.25rem;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

html.auth-page .auth-headline-line {
  display: block;
  color: #ffffff;
}

html.auth-page .auth-headline-accent {
  display: block;
  color: var(--auth-green-bright);
}

html.auth-page .auth-lead {
  margin: 0 0 2.25rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--auth-muted);
}

html.auth-page .auth-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

html.auth-page .auth-features li {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.9375rem;
  color: #e2e8f0;
}

html.auth-page .feat-mark {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--auth-green);
  transform: rotate(45deg);
  box-shadow: 0 0 8px var(--auth-green);
}

html.auth-page .auth-showcase-footer {
  flex-shrink: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(34, 197, 94, 0.12);
}

html.auth-page .auth-trust-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--auth-dim);
}

html.auth-page .auth-trust-copy strong {
  color: var(--auth-muted);
  font-weight: 600;
}

/* —— Right: form —— */
html.auth-page .auth-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  background: transparent;
}

html.auth-page .auth-panel-brand {
  display: none !important;
}

html.auth-page .auth-messages {
  width: 100%;
  max-width: 400px;
  margin-bottom: 1rem;
}

html.auth-page .alert {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid var(--auth-green-border);
  color: var(--auth-text);
}

html.auth-page .auth-card {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  border-radius: 20px;
  background: var(--auth-card);
  border: 1px solid var(--auth-green-border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 48px var(--auth-green-glow);
}

html.auth-page .auth-card[data-animate] {
  animation: auth-card-in 0.5s ease forwards;
}

@keyframes auth-card-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html.auth-page .auth-card-header {
  margin-bottom: 1.75rem;
}

html.auth-page .auth-card-header h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

html.auth-page .auth-card-header p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--auth-muted);
}

/* Form */
html.auth-page .auth-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

html.auth-page .auth-form .field {
  margin-bottom: 1.125rem;
}

html.auth-page .auth-form .field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #cbd5e1;
}

html.auth-page .auth-form .input,
html.auth-page .auth-form input.input,
html.auth-page .auth-form input[type="email"],
html.auth-page .auth-form input[type="password"],
html.auth-page .auth-form input[type="text"] {
  width: 100%;
  margin: 0;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--auth-text) !important;
  background: var(--auth-input) !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

html.auth-page .auth-form .input::placeholder {
  color: #475569 !important;
}

html.auth-page .auth-form .input:focus {
  outline: none !important;
  border-color: var(--auth-green) !important;
  box-shadow: 0 0 0 3px var(--auth-green-glow) !important;
}

html.auth-page .auth-form .field.focused label {
  color: var(--auth-green-bright);
}

html.auth-page .password-wrap {
  position: relative;
}

html.auth-page .password-wrap .input {
  padding-right: 2.75rem !important;
}

html.auth-page .toggle-pw {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--auth-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}

html.auth-page .toggle-pw:hover {
  color: var(--auth-green);
  background: rgba(34, 197, 94, 0.1);
}

html.auth-page .toggle-pw svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
}

html.auth-page .toggle-pw .icon-eye-off {
  display: none;
}

html.auth-page .toggle-pw.active .icon-eye {
  display: none;
}

html.auth-page .toggle-pw.active .icon-eye-off {
  display: block;
}

html.auth-page .field-optional {
  font-weight: 400;
  color: var(--auth-dim);
}

html.auth-page .field-required {
  color: var(--auth-dim);
}

html.auth-page .field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--auth-dim);
  line-height: 1.45;
}

html.auth-page .field-invalid label {
  color: #fca5a5;
}

html.auth-page .field-invalid .input {
  border-color: var(--auth-error) !important;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.15) !important;
}

html.auth-page .field-error,
html.auth-page .form-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--auth-error);
}

html.auth-page .form-error {
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.75rem;
  border-radius: 10px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
}

/* Buttons */
html.auth-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

html.auth-page .btn-primary {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 45%, #16a34a 100%);
  color: #052e12;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}

html.auth-page .btn-primary:hover {
  background: linear-gradient(135deg, #86efac 0%, #4ade80 50%, #22c55e 100%);
  box-shadow: 0 6px 28px rgba(34, 197, 94, 0.5);
  transform: translateY(-1px);
}

html.auth-page .btn-auth {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem 1.25rem;
}

html.auth-page .btn-arrow {
  font-size: 1.1em;
  line-height: 1;
}

html.auth-page .auth-switch {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--auth-muted);
}

html.auth-page .auth-switch a {
  color: var(--auth-green-bright);
  font-weight: 600;
  text-decoration: none;
}

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

/* Responsive */
@media (max-width: 1024px) {
  html.auth-page .auth-shell {
    grid-template-columns: 1fr 400px;
  }

  html.auth-page .auth-showcase {
    padding: 2rem 2rem 1.5rem;
  }

  html.auth-page .auth-headline {
    font-size: 2rem;
  }
}

@media (max-width: 860px) {
  html.auth-page .auth-shell {
    grid-template-columns: 1fr;
  }

  html.auth-page .auth-showcase {
    display: none;
  }

  html.auth-page .auth-panel {
    min-height: 100dvh;
    padding: 1.5rem 1.25rem 2rem;
    justify-content: flex-start;
    padding-top: 2rem;
  }

  html.auth-page .auth-panel-brand {
    display: inline-block !important;
    align-self: flex-start;
    width: 100%;
    max-width: 400px;
    margin-bottom: 1.5rem;
  }

  html.auth-page .auth-panel-brand .auth-brand-logo {
    width: 120px;
  }
}

@media (max-width: 480px) {
  html.auth-page .auth-form .form-row {
    grid-template-columns: 1fr;
  }

  html.auth-page .auth-card {
    padding: 1.5rem 1.25rem;
  }
}
