/* ================================================================
   RemoteHerd Auth Pages — Split-screen login / register
   ================================================================ */

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

:root {
  --ink:    #0B0A4E;
  --mint:   #56FFBD;
  --mint2:  #0BCF92;
  --white:  #FFFFFF;
  --off:    #F5F5F0;
  --gray:   #8A8FA8;
  --border: rgba(11,10,78,.10);
}

html, body { height: 100%; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ── LAYOUT ── */
.auth-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ── BRAND PANEL (left) ── */
.auth-brand {
  background: var(--ink);
  display: flex;
  flex-direction: column;
  padding: 48px 52px;
  position: relative;
  overflow: hidden;
}

.auth-brand-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(86,255,189,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86,255,189,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.auth-brand-glow {
  position: absolute; bottom: -100px; left: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(86,255,189,.10) 0%, transparent 70%);
  pointer-events: none;
}

.auth-brand-logo {
  position: relative; z-index: 1;
  margin-bottom: 48px;
}
.auth-brand-logo img {
  height: 42px;
  filter: brightness(0) invert(1);
  opacity: .9;
}

.auth-brand-body {
  position: relative; z-index: 1;
  flex: 1;
}

.auth-brand-eyebrow {
  font-size: 11px; font-weight: 700;
  color: rgba(86,255,189,.5);
  letter-spacing: .15em; text-transform: uppercase;
  margin-bottom: 16px;
}

.auth-brand-headline {
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  font-weight: 900; color: #fff;
  letter-spacing: -0.03em; line-height: 1.08;
  margin-bottom: 20px;
}
.auth-brand-headline em {
  font-style: italic; font-weight: 300;
  color: var(--mint);
}

.auth-brand-sub {
  font-size: 15px; color: rgba(255,255,255,.45);
  line-height: 1.75; max-width: 340px; margin-bottom: 40px;
}

/* Feature list */
.auth-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 48px; }
.auth-feature {
  display: flex; align-items: center; gap: 12px;
}
.auth-feature-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(86,255,189,.10);
  border: 1px solid rgba(86,255,189,.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 13px; color: var(--mint);
}
.auth-feature-text {
  font-size: 14px; color: rgba(255,255,255,.6); font-weight: 500;
}

/* Testimonial rotator */
.auth-testimonial-wrap {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px; margin-bottom: 28px;
}
.auth-testimonial-dots {
  display: flex; gap: 8px; margin-bottom: 16px;
}
.auth-testimonial-dot {
  height: 6px; border-radius: 3px;
  background: rgba(255,255,255,.15);
  border: none; cursor: pointer;
  transition: all .3s; padding: 0;
}
.auth-testimonial-dot.active {
  width: 24px; background: var(--mint);
}
.auth-testimonial-dot:not(.active) { width: 6px; }

.auth-testimonial-quote {
  font-size: 14px; font-style: italic;
  color: rgba(255,255,255,.55); line-height: 1.65; margin-bottom: 14px;
}
.auth-testimonial-author {
  display: flex; align-items: center; gap: 10px;
}
.auth-testimonial-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid rgba(86,255,189,.3);
  background: rgba(86,255,189,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--mint);
  flex-shrink: 0;
}
.auth-testimonial-name {
  font-size: 13px; font-weight: 700; color: #fff;
}
.auth-testimonial-role {
  font-size: 11px; color: rgba(255,255,255,.35); margin-top: 1px;
}

/* Stats strip */
.auth-stats {
  position: relative; z-index: 1;
  display: flex; gap: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.auth-stat-n {
  font-size: 18px; font-weight: 800; color: var(--mint);
}
.auth-stat-l {
  font-size: 11px; color: rgba(255,255,255,.3); margin-top: 2px;
}

/* ── FORM PANEL (right) ── */
.auth-form-panel {
  background: var(--white);
  display: flex;
  flex-direction: column;
  overflow: auto;
}

/* Top nav bar */
.auth-topbar {
  padding: 20px 52px;
  display: flex; align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.auth-tabs {
  display: flex; gap: 4px;
  background: var(--off); border-radius: 8px; padding: 3px;
}
.auth-tab {
  padding: 7px 18px; border-radius: 6px;
  border: none; cursor: pointer;
  font-size: 13px; font-weight: 700;
  color: var(--ink); transition: all .2s;
  text-decoration: none; display: inline-block;
}
.auth-tab--active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(11,10,78,.10);
}
.auth-tab:not(.auth-tab--active) { background: transparent; }

.auth-back-link {
  font-size: 13px; color: var(--gray);
  text-decoration: none;
  display: flex; align-items: center; gap: 6px;
  transition: color .2s;
}
.auth-back-link:hover { color: var(--ink); }

/* Form container */
.auth-form-wrap {
  flex: 1;
  display: flex; align-items: center;
  padding: 48px 52px;
}
.auth-form-inner {
  width: 100%; max-width: 420px; margin: 0 auto;
}

/* Headings */
.auth-form-title {
  font-size: 28px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.02em; margin-bottom: 6px;
}
.auth-form-sub {
  font-size: 15px; color: var(--gray); margin-bottom: 32px;
}

/* Flash messages */
.auth-flash {
  border-radius: 10px; padding: 12px 16px;
  font-size: 14px; font-weight: 500;
  margin-bottom: 20px;
}
.auth-flash--danger { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.auth-flash--warning { background: #FFFBEB; color: #D97706; border: 1px solid #FDE68A; }
.auth-flash--success { background: #F0FDF4; color: #16A34A; border: 1px solid #BBF7D0; }
.auth-flash--info    { background: #EFF6FF; color: #2563EB; border: 1px solid #BFDBFE; }

/* Form fields */
.auth-field { margin-bottom: 20px; }
.auth-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--ink); margin-bottom: 7px;
}
.auth-input-wrap {
  position: relative; display: flex; align-items: center;
}
.auth-input-icon {
  position: absolute; left: 14px; font-size: 14px;
  color: var(--gray); pointer-events: none;
}
.auth-input {
  width: 100%;
  padding: 13px 14px 13px 40px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px; color: var(--ink);
  background: #fff;
  font-family: 'Inter', sans-serif;
  transition: border-color .2s;
  outline: none;
}
.auth-input:focus { border-color: var(--ink); }
.auth-input--no-icon { padding-left: 14px; }
.auth-input-right {
  position: absolute; right: 14px;
}
.auth-pw-toggle {
  background: none; border: none; cursor: pointer;
  font-size: 13px; color: var(--gray); padding: 0;
}

/* Password strength */
.auth-strength { margin-top: 8px; }
.auth-strength-bar-wrap {
  height: 4px; background: var(--border);
  border-radius: 2px; overflow: hidden; margin-bottom: 5px;
}
.auth-strength-bar {
  height: 100%; border-radius: 2px;
  transition: width .3s, background .3s;
}
.auth-strength-label { font-size: 11px; font-weight: 600; }

/* Toggle switch */
.auth-toggle-row {
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; margin-bottom: 28px;
}
.auth-toggle {
  width: 42px; height: 24px; border-radius: 12px;
  background: var(--border);
  position: relative; transition: background .2s; flex-shrink: 0;
}
.auth-toggle--on { background: var(--ink); }
.auth-toggle-knob {
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff;
  position: absolute; top: 3px; left: 3px;
  transition: left .2s;
}
.auth-toggle--on .auth-toggle-knob { left: 21px; }
.auth-toggle-text { font-size: 14px; color: var(--gray); }

/* Row */
.auth-row {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 24px;
}
.auth-remember {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--gray); cursor: pointer;
}
.auth-remember input { accent-color: var(--ink); width: 15px; height: 15px; }
.auth-forgot {
  font-size: 14px; font-weight: 600; color: var(--ink);
  text-decoration: none;
}
.auth-forgot:hover { text-decoration: underline; }

/* Submit buttons */
.auth-btn-primary {
  width: 100%;
  background: var(--ink); color: #fff;
  border: none; border-radius: 10px;
  padding: 15px; font-size: 16px; font-weight: 700;
  cursor: pointer; margin-bottom: 16px;
  transition: filter .2s;
  font-family: 'Inter', sans-serif;
}
.auth-btn-primary:hover { filter: brightness(1.15); }

.auth-btn-mint {
  background: var(--mint); color: var(--ink);
}
.auth-btn-mint:hover { filter: brightness(1.06); }

/* Switch link */
.auth-switch {
  text-align: center; font-size: 14px; color: var(--gray);
}
.auth-switch a {
  font-size: 14px; font-weight: 700; color: var(--ink);
  text-decoration: underline; cursor: pointer;
}

/* Divider */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0;
}
.auth-divider-line { flex: 1; height: 1px; background: var(--border); }
.auth-divider-text { font-size: 12px; color: var(--gray); font-weight: 500; }

/* Google button */
.auth-google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 13px; font-size: 14px; font-weight: 600;
  color: var(--ink); text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.auth-google-btn:hover { border-color: var(--ink); box-shadow: 0 2px 8px rgba(11,10,78,.06); }

/* Fine print */
.auth-fine-print {
  font-size: 12px; color: var(--gray); text-align: center; margin-top: 20px;
}
.auth-fine-print a { color: var(--ink); font-weight: 600; text-decoration: none; }
.auth-fine-print a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-form-panel { min-height: 100vh; }
  .auth-form-wrap { padding: 40px 32px; }
  .auth-topbar { padding: 20px 32px; }
}

@media (max-width: 480px) {
  .auth-form-wrap { padding: 32px 24px; }
  .auth-topbar { padding: 16px 24px; }
}
