/* ==========================================================================
   FACILITO B2B - AUTHENTICATION STYLES (LOGIN & REGISTER)
   Grado: Linear / Vercel Dark Luxury
   ========================================================================== */

:root {
  --bg-canvas: #07080B;
  --bg-surface: #0C0F17;
  --bg-surface-elevated: #111520;
  --bg-surface-card: #151A27;

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(56, 189, 248, 0.6);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-dim: #475569;

  --accent-cyan: #38BDF8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.12);
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
  --accent-rose: #F43F5E;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  -webkit-font-smoothing: antialiased;
}

.icon-svg {
  display: inline-block;
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}

.icon-svg.sm {
  width: 14px;
  height: 14px;
}

.icon-svg.md {
  width: 20px;
  height: 20px;
}

.auth-layout {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ================= LEFT VALUE PANE ================= */
.auth-side-pane {
  flex: 1.1;
  background: linear-gradient(145deg, #0D111A 0%, #06070A 100%);
  border-right: 1px solid var(--border-subtle);
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.side-content {
  max-width: 500px;
  margin: 0 auto;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 40px;
}

.brand-badge-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.accent-cyan {
  color: var(--accent-cyan);
}

.side-hero-text h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.side-hero-text p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.value-bullets {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.bullet-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.bullet-item strong {
  display: block;
  font-size: 13.5px;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.bullet-item p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 20px;
  color: #CBD5E1;
  font-size: 13px;
  line-height: 1.55;
}

.testimonial-author {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
}

.testimonial-author strong {
  font-size: 12px;
  color: var(--text-primary);
}

.testimonial-author span {
  font-size: 11px;
  color: var(--text-muted);
}

.gated-info-box {
  background: rgba(245, 158, 11, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.badge-exclusive {
  background: rgba(245, 158, 11, 0.15);
  color: #FDE68A;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.gated-info-box p {
  font-size: 13px;
  color: #CBD5E1;
  margin: 12px 0 16px;
  line-height: 1.5;
}

.gated-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.step-num {
  width: 20px;
  height: 20px;
  background: var(--accent-amber);
  color: #000;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.trust-footer {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ================= RIGHT FORM PANE ================= */
.auth-form-pane {
  flex: 1;
  background: var(--bg-canvas);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.form-container {
  width: 100%;
  max-width: 400px;
}

.back-home-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--ease-spring);
}

.back-home-link:hover {
  color: var(--accent-cyan);
}

.auth-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 4px;
  margin-bottom: 26px;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
  padding: 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.forgot-link {
  font-size: 11.5px;
  color: var(--accent-cyan);
  text-decoration: none;
}

.input-control {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 11px 13px;
  border-radius: 6px;
  font-size: 13.5px;
  font-family: inherit;
  transition: all 0.15s var(--ease-spring);
}

.input-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-cyan-glow);
}

.terms-note {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 20px;
}

.btn-primary-auth {
  width: 100%;
  background: var(--accent-cyan);
  color: #040810;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 6px;
  border: none;
  font-size: 13.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s var(--ease-spring);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}

.btn-primary-auth:hover {
  background: #7DD3FC;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
}

.form-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-muted);
}

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

.admin-hint {
  margin-top: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 9px 12px;
  border-radius: 6px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}

.admin-hint code {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.hidden {
  display: none !important;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .auth-layout {
    flex-direction: column;
  }
  .auth-side-pane {
    padding: 36px 24px;
  }
  .auth-form-pane {
    padding: 36px 24px;
  }
}
