/* =============================================================================
 * C3 Login — split-screen auth aligned with the public landing.
 * Brand panel + form panel. Same tokens as .c3-landing. Self-contained.
 * ============================================================================= */

.c3-auth {
  --c3-ink:        #0F172A;
  --c3-ink-2:      #475569;
  --c3-ink-soft:   #94A3B8;
  --c3-bg:         #FAFAF7;
  --c3-surface:    #FFFFFF;
  --c3-border:     #E6E8EC;
  --c3-primary:    #6366F1;
  --c3-primary-2:  #4F46E5;
  --c3-violet:     #8B5CF6;
  --c3-teal:       #10B981;
  --c3-amber:      #F59E0B;
  --c3-coral:      #EF4444;

  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--c3-ink);
  line-height: 1.55;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.c3-auth, .c3-auth * { box-sizing: border-box; }
:where(.c3-auth) a { color: inherit; text-decoration: none; }
:where(.c3-auth) input, :where(.c3-auth) button { font: inherit; }

/* ----------- Brand panel ----------- */
.c3-auth__brand {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #4338CA 100%);
  color: #fff;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.c3-auth__brand-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.c3-auth__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}
.c3-auth__blob--a {
  width: 320px; height: 320px;
  top: -80px; left: -60px;
  background: var(--c3-amber);
}
.c3-auth__blob--b {
  width: 260px; height: 260px;
  bottom: -60px; right: -40px;
  background: var(--c3-violet);
}
.c3-auth__blob--c {
  width: 220px; height: 220px;
  top: 40%; left: 30%;
  background: var(--c3-primary);
  opacity: 0.35;
}
.c3-auth__brand-content {
  position: relative;
  z-index: 1;
  margin-top: 8px;
}
.c3-auth__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 64px;
  font-weight: 700;
}
.c3-auth__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  backdrop-filter: blur(6px);
}
.c3-auth__logo-text { font-size: 16px; }

.c3-auth__brand-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(36px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 16px;
}
.c3-auth__brand-title span {
  font-style: italic;
  color: #FCD34D;
}
.c3-auth__brand-lead {
  font-size: 17px;
  margin: 0 0 36px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 460px;
}

.c3-auth__chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
}
.c3-auth__chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
}
.c3-auth__chip-tag {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FCD34D;
  margin-bottom: 4px;
}

.c3-auth__brand-foot {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}
.c3-auth__brand-foot a {
  color: #fff;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 1px;
  transition: border-color 200ms;
}
.c3-auth__brand-foot a:hover { border-color: #fff; }

/* ----------- Form panel ----------- */
.c3-auth__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 48px;
  background: var(--c3-bg);
}
.c3-auth__back {
  position: absolute;
  top: 28px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--c3-ink-2);
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 120ms, color 120ms;
}
.c3-auth__back:hover { background: var(--c3-surface); color: var(--c3-ink); }

.c3-auth__card {
  width: 100%;
  max-width: 420px;
}

.c3-auth__head { margin-bottom: 28px; }
.c3-auth__eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c3-primary);
  margin-bottom: 12px;
}
.c3-auth__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 800;
  margin: 0 0 8px;
}
.c3-auth__sub { margin: 0; font-size: 15.5px; color: var(--c3-ink-2); }

/* ----------- Error banner ----------- */
.c3-auth__error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 18px;
}
.c3-auth__error-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #DC2626;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

/* ----------- Form fields ----------- */
.c3-auth__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.c3-field { display: block; }
.c3-field__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c3-ink);
  margin-bottom: 6px;
}
.c3-field__hint {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--c3-primary);
  transition: color 120ms;
}
.c3-field__hint:hover { color: var(--c3-primary-2); text-decoration: underline; }

.c3-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c3-border);
  border-radius: 10px;
  background: var(--c3-surface);
  font-size: 15px;
  color: var(--c3-ink);
  transition: border-color 120ms, box-shadow 120ms;
}
.c3-field input::placeholder { color: var(--c3-ink-soft); }
.c3-field input:focus {
  outline: none;
  border-color: var(--c3-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

/* ----------- Custom checkbox ----------- */
.c3-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--c3-ink-2);
  cursor: pointer;
  user-select: none;
  margin-top: 2px;
  margin-bottom: 4px;
}
.c3-check input { position: absolute; opacity: 0; pointer-events: none; }
.c3-check__box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--c3-border);
  background: var(--c3-surface);
  position: relative;
  flex-shrink: 0;
  transition: background 120ms, border-color 120ms;
}
.c3-check__box::after {
  content: "";
  position: absolute;
  top: 2px; left: 5px;
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 120ms;
}
.c3-check input:checked + .c3-check__box {
  background: var(--c3-primary);
  border-color: var(--c3-primary);
}
.c3-check input:checked + .c3-check__box::after { transform: rotate(45deg) scale(1); }
.c3-check input:focus-visible + .c3-check__box {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}

/* ----------- Submit button ----------- */
.c3-auth__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 12px;
  background: var(--c3-ink);
  color: #fff;
  border: none;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  transition: background 120ms, transform 120ms, box-shadow 120ms;
}
.c3-auth__btn:hover {
  background: #1E293B;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -12px rgba(15, 23, 42, 0.4);
}
.c3-auth__btn:active { transform: translateY(0); }
.c3-auth__btn-arrow { transition: transform 200ms; }
.c3-auth__btn:hover .c3-auth__btn-arrow { transform: translateX(3px); }

/* ----------- Footnote ----------- */
.c3-auth__footnote {
  margin: 28px 0 0;
  font-size: 13.5px;
  color: var(--c3-ink-2);
  text-align: center;
}
.c3-auth__footnote a {
  color: var(--c3-primary);
  font-weight: 600;
}
.c3-auth__footnote a:hover { color: var(--c3-primary-2); text-decoration: underline; }

/* ----------- Responsive ----------- */
@media (max-width: 900px) {
  .c3-auth { grid-template-columns: 1fr; }
  .c3-auth__brand {
    padding: 36px 28px;
    min-height: 0;
  }
  .c3-auth__logo { margin-bottom: 28px; }
  .c3-auth__brand-title { font-size: 32px; }
  .c3-auth__brand-lead { margin-bottom: 22px; }
  .c3-auth__chips { display: none; }
  .c3-auth__brand-foot { margin-top: 22px; }
  .c3-auth__panel { padding: 40px 24px 56px; }
  .c3-auth__back { position: static; align-self: flex-start; margin-bottom: 24px; }
}
@media (max-width: 480px) {
  .c3-auth__brand { padding: 28px 22px; }
  .c3-auth__brand-title { font-size: 28px; }
  .c3-auth__panel { padding: 28px 20px 40px; }
}
