/* ====== CUSTOMER AUTH (login + signup) ====== */

body.auth-body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.cauth-wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}

/* ====== LEFT: BRAND SIDE ====== */
.cauth-side {
  position: relative;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  color: #fff;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cauth-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,106,26,0.32), transparent 55%),
    radial-gradient(circle at 20% 90%, rgba(255,106,26,0.18), transparent 55%);
  pointer-events: none;
}
.cauth-side::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 1000px 700px at 50% 50%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 1000px 700px at 50% 50%, #000 30%, transparent 78%);
  pointer-events: none;
}
.cauth-side > * { position: relative; z-index: 1; }

.cauth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 32px;
  transition: color 0.2s;
  width: fit-content;
}
.cauth-back:hover { color: #fff; }

.cauth-brand img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  display: block;
  margin-bottom: 60px;
}

.cauth-headline {
  margin-top: auto;
  margin-bottom: 36px;
}
.cauth-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(255,106,26,0.15);
  color: var(--orange);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.cauth-headline h2 {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  color: #fff;
}
.cauth-headline h2 em { font-style: normal; color: var(--orange); }
.cauth-headline p {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  line-height: 1.7;
  max-width: 460px;
  margin: 0;
}

.cauth-perks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.cauth-perk {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  font-weight: 500;
}
.cauth-perk-icon {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: rgba(255,106,26,0.15);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ====== RIGHT: FORM SIDE ====== */
.cauth-form-wrap {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 56px;
  position: relative;
}
.cauth-form-wrap::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,106,26,0.08) 0%, transparent 60%);
  pointer-events: none;
  filter: blur(40px);
}
.cauth-form-inner {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}

.cauth-card-head {
  margin-bottom: 32px;
}
.cauth-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--orange-soft);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.cauth-card-head h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--text);
}
.cauth-card-head p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* Alerts */
.cauth-error,
.cauth-success {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-width: 1px;
  border-style: solid;
}
.cauth-error {
  background: rgba(239,68,68,0.08);
  color: #B91C1C;
  border-color: rgba(239,68,68,0.20);
}
.cauth-success {
  background: rgba(16,185,129,0.08);
  color: var(--green);
  border-color: rgba(16,185,129,0.20);
}

/* Form */
.cauth-form { margin: 0; }
.cauth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cauth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.cauth-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cauth-field label .opt {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--dim);
  font-size: 11px;
  margin-left: 4px;
}
.cauth-input {
  position: relative;
  display: flex;
  align-items: center;
}
.cauth-input svg {
  position: absolute;
  left: 13px;
  color: var(--muted);
  pointer-events: none;
}
.cauth-input input {
  width: 100%;
  padding: 13px 14px 13px 40px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--bg-2);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}
.cauth-input input:focus {
  border-color: var(--orange);
  background: var(--bg);
  box-shadow: 0 0 0 4px rgba(255,106,26,0.08);
}
.cauth-input:has(svg) input { padding-left: 40px; }
.cauth-input:not(:has(svg)) input { padding-left: 14px; }

.cauth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 22px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}
.cauth-options label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  cursor: pointer;
}
.cauth-options input { accent-color: var(--orange); }
.cauth-options a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
}
.cauth-options a:hover { text-decoration: underline; }

.cauth-terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  margin: 6px 0 22px;
  line-height: 1.55;
}
.cauth-terms input {
  margin-top: 3px;
  accent-color: var(--orange);
}
.cauth-terms a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
}
.cauth-terms a:hover { text-decoration: underline; }

.cauth-submit {
  width: 100%;
  padding: 14px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 11px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 22px rgba(255,106,26,0.25);
}
.cauth-submit:hover {
  background: var(--orange-2);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(255,106,26,0.35);
}

.cauth-divider {
  display: flex;
  align-items: center;
  margin: 28px 0 22px;
  color: var(--dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.cauth-divider::before,
.cauth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.cauth-divider span { padding: 0 14px; }

.cauth-foot {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.cauth-foot a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
}
.cauth-foot a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 980px) {
  .cauth-wrap { grid-template-columns: 1fr; }
  .cauth-side { padding: 40px 32px; }
  .cauth-headline h2 { font-size: 32px; }
  .cauth-form-wrap { padding: 40px 28px; }
  .cauth-row { grid-template-columns: 1fr; }
  .cauth-brand img { margin-bottom: 32px; }
  .cauth-headline { margin-top: 24px; }
}
