/* ============================================================
   CreatorsServices — Customer Auth
   Template: woocommerce/myaccount/form-login.php
   ============================================================ */

:root {
  --cs-bg: #07090f;
  --cs-bg-elevated: #0d121c;
  --cs-surface: rgba(16, 22, 34, 0.72);
  --cs-surface-solid: #111827;
  --cs-border: rgba(148, 163, 184, 0.16);
  --cs-border-strong: rgba(148, 163, 184, 0.28);
  --cs-text: #f1f5f9;
  --cs-muted: #94a3b8;
  --cs-faint: #64748b;
  --cs-accent: #22d3ee;
  --cs-accent-2: #38bdf8;
  --cs-accent-soft: rgba(34, 211, 238, 0.12);
  --cs-danger: #fb7185;
  --cs-success: #34d399;
  --cs-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --cs-radius: 20px;
  --cs-radius-sm: 12px;
  --cs-font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.cs-auth,
.cs-auth * {
  box-sizing: border-box;
}

.cs-auth {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: 48px 20px 64px;
  overflow: hidden;
  font-family: var(--cs-font);
  color: var(--cs-text);
  background: var(--cs-bg);
}

/* ---------- Background ---------- */
.cs-auth__background {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.cs-auth__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.cs-auth__orb--one {
  top: -120px;
  left: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.35), transparent 70%);
}

.cs-auth__orb--two {
  right: -100px;
  bottom: -140px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.32), transparent 70%);
}

.cs-auth__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

/* ---------- Layout ---------- */
.cs-auth__container {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.cs-auth__hero {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.cs-auth__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 12px;
  border: 1px solid var(--cs-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--cs-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.cs-auth__eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cs-accent);
  box-shadow: 0 0 0 4px var(--cs-accent-soft);
}

.cs-auth__hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 720;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.cs-auth__hero h1 span {
  display: block;
  color: var(--cs-accent-2);
}

.cs-auth__hero p {
  margin: 0;
  color: var(--cs-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.cs-auth__layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.cs-auth__layout--login-only {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
}

/* ---------- Cards ---------- */
.cs-auth-card {
  padding: 28px 26px 24px;
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius);
  background: var(--cs-surface);
  box-shadow: var(--cs-shadow);
  backdrop-filter: blur(18px);
}

.cs-auth-card--register {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.05), transparent 28%), var(--cs-surface);
}

.cs-auth-card__head {
  display: flex;
  gap: 14px;
  margin-bottom: 26px;
}

.cs-auth-card__icon {
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--cs-accent);
  background: var(--cs-accent-soft);
  border: 1px solid rgba(34, 211, 238, 0.18);
}

.cs-auth-card__icon svg {
  width: 22px;
  height: 22px;
}

.cs-auth-card__icon--register {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.22);
}

.cs-auth-card__label {
  display: block;
  margin-bottom: 4px;
  color: var(--cs-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.cs-auth-card__head h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.cs-auth-card__head p {
  margin: 0;
  color: var(--cs-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ---------- Form ---------- */
.cs-auth-form {
  display: grid;
  gap: 16px;
}

.cs-auth-field label {
  display: block;
  margin-bottom: 8px;
  color: #e2e8f0;
  font-size: 0.86rem;
  font-weight: 600;
}

.cs-auth-field label span {
  color: var(--cs-accent);
}

.cs-auth-field__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cs-auth-forgot {
  color: var(--cs-accent-2);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.cs-auth-forgot:hover {
  text-decoration: underline;
}

.cs-auth-field__control {
  position: relative;
}

.cs-auth-field__icon {
  position: absolute;
  top: 50%;
  left: 14px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--cs-faint);
  transform: translateY(-50%);
  pointer-events: none;
}

.cs-auth-field__icon svg {
  width: 18px;
  height: 18px;
}

.cs-auth-field input.input-text,
.cs-auth-form input[type="text"],
.cs-auth-form input[type="email"],
.cs-auth-form input[type="password"] {
  width: 100%;
  height: 50px;
  padding: 0 14px 0 44px;
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius-sm);
  background: rgba(2, 6, 23, 0.55);
  color: var(--cs-text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cs-auth-field input:not(:has(+ .cs-auth-field__icon)),
.cs-auth-card--register .cs-auth-field input {
  padding-left: 14px;
}

.cs-auth-field__control:has(.cs-auth-field__icon) input {
  padding-left: 44px;
}

.cs-auth-form input::placeholder {
  color: #64748b;
}

.cs-auth-form input:focus {
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(2, 6, 23, 0.8);
  box-shadow: 0 0 0 4px var(--cs-accent-soft);
}

.cs-auth-form__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cs-auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--cs-muted);
  font-size: 0.9rem;
  user-select: none;
}

.cs-auth-remember input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cs-auth-remember__box {
  width: 18px;
  height: 18px;
  border: 1px solid var(--cs-border-strong);
  border-radius: 5px;
  background: rgba(2, 6, 23, 0.6);
  box-shadow: inset 0 0 0 0 var(--cs-accent);
  transition: 0.15s ease;
}

.cs-auth-remember input:checked + .cs-auth-remember__box {
  border-color: var(--cs-accent);
  background: var(--cs-accent);
  box-shadow: inset 0 0 0 3px #022c33;
}

.cs-auth-form__submit {
  margin-top: 4px;
}

.cs-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #67e8f9 0%, #22d3ee 48%, #0891b2 100%);
  color: #042f2e;
  font-size: 0.98rem;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.25);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.cs-auth-button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.cs-auth-button:active {
  transform: translateY(0);
}

.cs-auth-card--register .cs-auth-button {
  background: linear-gradient(180deg, #a5b4fc 0%, #818cf8 48%, #4f46e5 100%);
  color: #0b1020;
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.28);
}

/* Password note + privacy */
.cs-auth-password-note {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 14px;
  background: rgba(14, 165, 233, 0.08);
}

.cs-auth-password-note__icon {
  flex: 0 0 20px;
  color: var(--cs-accent-2);
}

.cs-auth-password-note__icon svg {
  width: 20px;
  height: 20px;
}

.cs-auth-password-note p {
  margin: 0;
  color: var(--cs-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.cs-auth-password-note strong {
  display: block;
  margin-bottom: 2px;
  color: var(--cs-text);
}

.cs-auth-privacy {
  color: var(--cs-faint);
  font-size: 0.8rem;
  line-height: 1.6;
}

.cs-auth-privacy a {
  color: var(--cs-accent-2);
}

/* ---------- Benefits ---------- */
.cs-auth-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.cs-auth-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--cs-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.cs-auth-benefit__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--cs-accent);
  background: var(--cs-accent-soft);
}

.cs-auth-benefit__icon svg {
  width: 18px;
  height: 18px;
}

.cs-auth-benefit strong {
  display: block;
  font-size: 0.86rem;
}

.cs-auth-benefit small {
  color: var(--cs-faint);
  font-size: 0.75rem;
}

.cs-auth__security {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 760px;
  margin: 22px auto 0;
  padding: 16px 18px;
  border: 1px solid var(--cs-border);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.35);
  color: var(--cs-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.cs-auth__security svg {
  width: 20px;
  height: 20px;
  color: var(--cs-accent);
}

.cs-auth__security strong {
  color: var(--cs-text);
}

/* Woo notices inside auth */
.cs-auth .woocommerce-error,
.cs-auth .woocommerce-message,
.cs-auth .woocommerce-info {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--cs-border);
  background: rgba(15, 23, 42, 0.8);
  color: var(--cs-text);
  list-style: none;
}

.cs-auth .woocommerce-error {
  border-color: rgba(251, 113, 133, 0.35);
  background: rgba(127, 29, 29, 0.25);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cs-auth__layout,
  .cs-auth-benefits {
    grid-template-columns: 1fr;
  }

  .cs-auth {
    padding: 32px 16px 48px;
  }

  .cs-auth-card {
    padding: 22px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-auth-button {
    transition: none;
  }
}