/* ==========================================================================
   AutoRebuildFax — Auth v3 (Split Panel)
   Replaces centered-card layout with a full-height 2-column grid.
   Built on arf-tokens.css + arf-ui.css. Loaded from layouts/auth.blade.php.
   ========================================================================== */

/* ── Shell reset ────────────────────────────────────────────────────────── */

html, body { height: 100%; margin: 0; padding: 0; }

body {
  font-family: var(--arf-font-body);
  background: #fff;
  overflow-x: hidden;
}

/* ── Split grid ─────────────────────────────────────────────────────────── */

.arf-auth-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  min-height: 100vh;
}

/* ── Brand panel (left col) ─────────────────────────────────────────────── */

.arf-auth-brand {
  background: linear-gradient(160deg, var(--arf-ink-deep) 0%, #1a0507 100%);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* dot-grid texture */
.arf-auth-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* radial glow from bottom-left */
.arf-auth-brand::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 20% 110%, rgba(138, 26, 31, 0.22) 0%, transparent 65%);
  pointer-events: none;
}

.arf-auth-brand-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2.5rem;
  position: relative;
  z-index: 1;
}

/* Logo sits at the top */
.arf-auth-brand-logo { display: block; margin-bottom: auto; }
.arf-auth-brand-logo img { height: 34px; width: auto; }

/* Headline block in the center */
.arf-auth-brand-body {
  padding: 3rem 0 2.5rem;
}

.arf-auth-brand-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e07c80;
  background: rgba(138, 26, 31, 0.22);
  border: 1px solid rgba(138, 26, 31, 0.4);
  border-radius: var(--arf-radius-pill);
  padding: 4px 12px;
  margin-bottom: 1.25rem;
}

.arf-auth-brand-headline {
  font-family: var(--arf-font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.arf-auth-brand-lead {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Trust list */
.arf-auth-trust {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
}

.arf-auth-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.arf-auth-trust li:last-child { border-bottom: none; }
.arf-auth-trust li i { font-size: 1rem; color: rgba(255, 255, 255, 0.35); flex-shrink: 0; }

/* Bottom tagline */
.arf-auth-brand-tagline {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* ── Form panel (right col) ─────────────────────────────────────────────── */

.arf-auth-main {
  background: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  overflow-y: auto;
}

.arf-auth-panel {
  width: 100%;
  max-width: 420px;
}

/* Mobile logo (only shown when brand panel is hidden) */
.arf-auth-panel-logo {
  display: none;
  margin-bottom: 2rem;
}

.arf-auth-panel-logo img { height: 34px; width: auto; }

/* Card heading */
.arf-auth-panel-title {
  font-family: var(--arf-font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--arf-ink);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.arf-auth-panel-sub {
  font-size: 0.9375rem;
  color: var(--arf-body);
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

/* ── Form controls ──────────────────────────────────────────────────────── */

.arf-auth-panel .form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--arf-ink);
  margin-bottom: 0.4rem;
}

.arf-auth-panel .form-control {
  min-height: 46px;
  border-radius: var(--arf-radius-sm);
  border-color: var(--arf-border);
  font-size: 0.9375rem;
  background: #fff;
  color: var(--arf-ink);
  transition: border-color var(--arf-transition), box-shadow var(--arf-transition);
}

.arf-auth-panel .form-control:focus {
  border-color: var(--arf-focus-border);
  box-shadow: 0 0 0 3px var(--arf-primary-focus-ring);
  background: #fff;
}

.arf-auth-panel .input-group .form-control { border-right: none; }

.arf-auth-panel .input-group-text {
  background: var(--arf-surface-alt);
  border-color: var(--arf-border);
  border-left: none;
  border-radius: 0 var(--arf-radius-sm) var(--arf-radius-sm) 0;
  cursor: pointer;
  color: var(--arf-muted);
  transition: color var(--arf-transition);
  min-height: 46px;
}

.arf-auth-panel .input-group-text:hover { color: var(--arf-primary); }

.arf-auth-panel .form-check-input:checked {
  background-color: var(--arf-primary);
  border-color: var(--arf-primary);
}

/* Alerts */
.arf-auth-panel .alert { border-radius: var(--arf-radius-md); font-size: 0.875rem; }

/* Google / social button */
.arf-auth-panel .btn-default {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--arf-border);
  border-radius: var(--arf-radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  background: #fff;
  color: var(--arf-ink);
  transition: border-color var(--arf-transition), box-shadow var(--arf-transition);
}

.arf-auth-panel .btn-default:hover {
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: var(--arf-shadow-sm);
  color: var(--arf-ink);
}

/* Primary submit */
.arf-auth-panel .btn-primary {
  min-height: 46px;
  border-radius: var(--arf-radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}

/* Divider */
.arf-auth-divider {
  position: relative;
  text-align: center;
  margin: 1.25rem 0;
  color: var(--arf-muted);
  font-size: 0.8rem;
}

.arf-auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--arf-border);
}

.arf-auth-divider span {
  position: relative;
  background: #fff;
  padding: 0 12px;
}

/* Bottom link */
.arf-auth-panel-link {
  font-size: 0.875rem;
  color: var(--arf-body);
  margin-top: 1.25rem;
  margin-bottom: 0;
  text-align: center;
}

.arf-auth-panel-link a {
  color: var(--arf-primary);
  font-weight: 600;
  text-decoration: none;
}

.arf-auth-panel-link a:hover { text-decoration: underline; }

/* Copyright */
.arf-auth-copyright {
  font-size: 0.75rem;
  color: var(--arf-muted);
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 0;
}

/* ── Responsive: tablet / mobile ────────────────────────────────────────── */

@media (max-width: 1199px) {
  .arf-auth-grid { grid-template-columns: 360px 1fr; }
  .arf-auth-brand-headline { font-size: 1.5rem; }
}

@media (max-width: 991px) {
  .arf-auth-grid { grid-template-columns: 1fr; }
  .arf-auth-brand { display: none !important; }
  .arf-auth-main {
    align-items: flex-start;
    padding: 2rem 1.5rem;
  }
  .arf-auth-panel { max-width: 480px; margin: 0 auto; }
  .arf-auth-panel-logo { display: block; }
}

@media (max-width: 480px) {
  .arf-auth-main { padding: 1.5rem 1.25rem; }
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .arf-auth-panel .form-control,
  .arf-auth-panel .input-group-text,
  .arf-auth-panel .btn-default { transition: none; }
}
