/* ============================================================================
   AuraCron — Login Designs (10 variants + switcher)
   No-build, in-browser. Flat / hairline / no-glow per the design brief.
   Each variant sets --ld-* tokens on .ld-root.ld-N; shared primitives consume
   them. Inputs use the high-specificity selector to out-rank ui.css.
   ========================================================================== */

/* ── Root + token defaults ────────────────────────────────────────────────── */
.ld-root {
  min-height: 100vh;
  width: 100%;
  position: relative;
  box-sizing: border-box;
  background: var(--ld-page-bg, #ffffff);
  color: var(--ld-text-color, #1d2b26);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* sensible token defaults — every variant overrides what it needs */
  --ld-page-bg: #ffffff;
  --ld-panel-bg: none;
  --ld-heading-color: #0a3b29;
  --ld-text-color: #1d2b26;
  --ld-muted-color: #5b6b64;
  --ld-input-bg: #ffffff;
  --ld-input-border: #c9d3cd;
  --ld-input-color: #142019;
  --ld-input-placeholder: #93a39b;
  --ld-input-radius: 8px;
  --ld-btn-bg: #115740;
  --ld-btn-color: #ffffff;
  --ld-btn-hover: #0d4733;
  --ld-accent: #9c7d3f;
  --ld-error-bg: #fdecec;
  --ld-error-border: #f1b9b9;
  --ld-error-color: #9b1c1c;
  --ld-success-bg: #eaf6ef;
  --ld-success-border: #b7ddc6;
  --ld-success-color: #1d6b43;
  --ld-form-max: 400px;
  --ld-serif: ui-serif, Georgia, 'Times New Roman', 'Iowan Old Style', Garamond, serif;
}

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

/* ── Shared layout scaffolding ────────────────────────────────────────────── */
.ld-form-col {
  width: 100%;
  max-width: var(--ld-form-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.ld-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ld-wordmark {
  font-family: var(--ld-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ld-heading-color);
}
.ld-heading {
  font-family: var(--ld-serif);
  font-weight: 600;
  font-size: 28px;
  line-height: 34px;
  color: var(--ld-heading-color);
  margin: 0;
}
.ld-subline {
  color: var(--ld-muted-color);
  font-size: 14px;
  line-height: 1.5;
  margin: 12px 0 0;
}

/* ── Shared form primitives ───────────────────────────────────────────────── */
.ld-form { display: flex; flex-direction: column; }
.ld-field { display: flex; flex-direction: column; margin-bottom: 20px; position: relative; }
.ld-field:last-of-type { margin-bottom: 0; }
.ld-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ld-text-color);
  margin-bottom: 8px;
}
.ld-input-wrap { position: relative; display: block; }

/* Inputs: out-rank ui.css (0,3,1) with .ld-root input.ld-input + the same :not chain */
.ld-root input.ld-input:not([type='checkbox']):not([type='radio']):not([type='range']) {
  width: 100%;
  min-height: 0;
  height: 46px;
  padding: 0 14px;
  font-size: 15px;
  line-height: 1.2;
  border: 1px solid var(--ld-input-border);
  border-radius: var(--ld-input-radius);
  background: var(--ld-input-bg);
  color: var(--ld-input-color);
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}
.ld-root input.ld-input.ld-input--pw:not([type='checkbox']):not([type='radio']):not([type='range']) {
  padding-right: 44px;
}
.ld-root input.ld-input:not([type='checkbox']):not([type='radio']):not([type='range'])::placeholder {
  color: var(--ld-input-placeholder);
  opacity: 1;
}
.ld-root input.ld-input:not([type='checkbox']):not([type='radio']):not([type='range']):focus {
  outline: none;
  border-color: var(--ld-focus-border, #115740);
  box-shadow: 0 0 0 3px var(--ld-focus-ring, rgba(17, 87, 64, 0.18));
}

/* eye toggle */
.ld-eye {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ld-accent);
  cursor: pointer;
  border-radius: 4px;
  transition: color 150ms ease;
}
.ld-eye:hover { color: var(--ld-btn-hover); }
.ld-eye:focus-visible { outline: 2px solid var(--ld-accent); outline-offset: 1px; }

/* submit button */
.ld-btn {
  width: 100%;
  height: 48px;
  margin-top: 28px;
  border: none;
  border-radius: var(--ld-input-radius);
  background: var(--ld-btn-bg);
  color: var(--ld-btn-color);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}
.ld-btn:hover:not(:disabled) { background: var(--ld-btn-hover); }
.ld-btn:focus-visible { outline: 2px solid var(--ld-btn-bg); outline-offset: 2px; }
.ld-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.ld-btn .spinner {
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: ld-spin 0.7s linear infinite;
}
@keyframes ld-spin { to { transform: rotate(360deg); } }

/* banners */
.ld-banner {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.ld-banner__glyph { flex-shrink: 0; font-weight: 700; line-height: 1.3; }
.ld-banner--error {
  background: var(--ld-error-bg);
  border: 1px solid var(--ld-error-border);
  color: var(--ld-error-color);
}
.ld-banner--success {
  background: var(--ld-success-bg);
  border: 1px solid var(--ld-success-border);
  color: var(--ld-success-color);
}
.ld-resend {
  display: inline-block;
  margin-top: 6px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ld-error-color);
  text-decoration: underline;
  cursor: pointer;
}

/* invite + footer */
.ld-invite {
  font-size: 13px;
  color: var(--ld-muted-color);
  text-align: center;
  border-top: 1px solid var(--ld-input-border);
  padding-top: 16px;
  margin-top: 16px;
  line-height: 1.5;
}
.ld-footer {
  font-size: 12px;
  color: var(--ld-muted-color);
  text-align: center;
  margin-top: 24px;
}

/* reduced motion: kill everything beyond color/border (we only use those + spinner) */
@media (prefers-reduced-motion: reduce) {
  .ld-root *, .ld-root *::before, .ld-root *::after {
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease !important;
    animation-duration: 0.001ms !important;
  }
  .ld-btn .spinner { animation: ld-spin 0.7s linear infinite; }
}

/* iOS no-zoom: inputs >=16px under 900px */
@media (max-width: 900px) {
  .ld-root input.ld-input:not([type='checkbox']):not([type='radio']):not([type='range']) {
    font-size: 16px;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   VARIANT 1 — Split Classic
   ════════════════════════════════════════════════════════════════════════════ */
.ld-root.ld-1 {
  --ld-page-bg: #ffffff;
  --ld-panel-bg: linear-gradient(180deg, #0e4a35 0%, #08231a 100%);
  --ld-heading-color: #0a3b29;
  --ld-text-color: #1d2b26;
  --ld-muted-color: #5b6b64;
  --ld-input-bg: #ffffff;
  --ld-input-border: #c9d3cd;
  --ld-input-color: #142019;
  --ld-input-placeholder: #93a39b;
  --ld-input-radius: 8px;
  --ld-focus-border: #115740;
  --ld-focus-ring: rgba(17, 87, 64, 0.18);
  --ld-btn-bg: #115740;
  --ld-btn-color: #ffffff;
  --ld-btn-hover: #0d4733;
  --ld-accent: #9c7d3f;
  --ld-error-bg: #fdecec; --ld-error-border: #f1b9b9; --ld-error-color: #9b1c1c;
  --ld-success-bg: #eaf6ef; --ld-success-border: #b7ddc6; --ld-success-color: #1d6b43;
  --ld-form-max: 380px;
  display: grid;
  grid-template-columns: 55% 45%;
}
.ld-1 .ld-1-panel {
  background: var(--ld-panel-bg);
  padding: 48px;
  padding-top: 112px; /* 48 + 64 offset */
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 100vh;
}
.ld-1 .ld-1-panel .ld-wordmark { color: #c9a86a; }
.ld-1-panel-headline {
  font-family: var(--ld-serif);
  font-weight: 600;
  font-size: 34px;
  line-height: 40px;
  color: #f3efe6;
  margin: 40px 0 0;
}
.ld-1-panel-sub {
  color: #cdbf9e;
  font-size: 15px;
  line-height: 1.55;
  margin: 12px 0 0;
  max-width: 38ch;
}
.ld-1-features { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-direction: column; gap: 18px; }
.ld-1-feature { display: flex; gap: 12px; align-items: flex-start; }
.ld-1-feature .ld-1-dot {
  width: 6px; height: 6px; background: #c9a86a; margin-top: 7px; flex-shrink: 0;
}
.ld-1-feature .ld-1-ico { color: #c9a86a; flex-shrink: 0; margin-top: 1px; }
.ld-1-feature strong { color: #f3efe6; font-weight: 700; font-size: 15px; }
.ld-1-feature .ld-1-cap { color: #cdbf9e; font-size: 13px; font-weight: 400; display: block; margin-top: 2px; }
.ld-1-badge {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(201, 168, 106, 0.5);
}
.ld-1-badge span {
  color: #c9a86a;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
.ld-1-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  min-height: 100vh;
}
@media (max-width: 900px) {
  .ld-root.ld-1 { display: flex; flex-direction: column; }
  .ld-1 .ld-1-form { order: 0; padding: 40px 24px; min-height: auto; }
  .ld-1 .ld-1-panel { order: 1; padding: 32px 24px; padding-top: 32px; min-height: auto; }
  .ld-1-panel-headline { font-size: 26px; line-height: 32px; }
}
@media (max-width: 600px) {
  .ld-1-panel-headline, .ld-1-panel-sub, .ld-1-features, .ld-1-badge { display: none; }
  .ld-1 .ld-1-panel { padding: 18px 24px; }
}
