/* ============================================================
   Villz · Artist Signup page styles
   ----------------------------------------------------------------
   Reads global Villz tokens (--noir, --rose, --ivory, etc.) from
   villz-tokens.css. Each var() carries a hardcoded fallback so the
   page renders even without globals.

   All classes prefixed .villz-asignup-* and scoped under
   .villz-asignup so they cannot collide with the logged-in app.
   ============================================================ */

.villz-asignup,
.villz-asignup *,
.villz-asignup *::before,
.villz-asignup *::after { box-sizing: border-box; }

.villz-asignup {
  min-height: 100vh;
  background:
    radial-gradient(60% 40% at 50% 18%, rgba(201,161,122,0.08), transparent 70%),
    var(--noir, #0a0908);
  color: var(--ivory, #f4ede1);
  font-family: var(--font-sans, 'Inter', system-ui, sans-serif);
  font-weight: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Top bar */
.villz-asignup-topbar {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 56px;
  border-bottom: 1px solid var(--line, #2a2520);
}
.villz-asignup-mark-row { display: flex; align-items: center; gap: 14px; }
.villz-asignup-mark {
  width: 32px; height: 32px; border-radius: 50%;
  background-size: cover; background-position: center;
  border: 1px solid var(--rose-deep, #a07d5b);
}
.villz-asignup-mark-word {
  font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
  font-weight: 500; font-size: 20px;
  letter-spacing: 0.34em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--rose, #c9a17a), var(--champagne, #e6cba8), var(--silver, #d8d4cc));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.villz-asignup-step {
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 10px; letter-spacing: 0.32em;
  color: var(--ivory-mute, #6b6459); text-transform: uppercase;
}
.villz-asignup-back {
  font-family: var(--font-sc, 'Cormorant SC', Georgia, serif);
  font-size: 10px; letter-spacing: 0.4em;
  color: var(--ivory-dim, #aea79a); text-transform: uppercase;
  text-decoration: none; transition: color 0.25s;
}
.villz-asignup-back:hover { color: var(--rose, #c9a17a); }

/* Hero */
.villz-asignup-hero {
  padding: 56px 32px 24px;
  text-align: center;
}
.villz-asignup-eyebrow {
  font-family: var(--font-sc, 'Cormorant SC', Georgia, serif);
  font-size: 11px; letter-spacing: 0.5em;
  color: var(--rose, #c9a17a); text-transform: uppercase;
}
.villz-asignup-h1 {
  font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
  font-weight: 300; font-size: 56px;
  margin: 14px 0 8px;
}
.villz-asignup-h1 em { font-style: italic; }
.villz-asignup-tag {
  font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
  font-style: italic; font-size: 18px;
  color: var(--ivory-dim, #aea79a);
}

/* Card */
.villz-asignup-card {
  width: 100%; max-width: 640px;
  background: linear-gradient(180deg, #14110e, #0c0a08);
  border: 1px solid var(--rose-deep, #a07d5b);
  padding: 48px;
  margin: 32px 0 64px;
  position: relative;
}
.villz-asignup-card .villz-asignup-corner {
  position: absolute; width: 14px; height: 14px;
  border: 1px solid var(--rose, #c9a17a);
}
.villz-asignup-card .villz-asignup-corner.tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.villz-asignup-card .villz-asignup-corner.tr { top: 14px; right: 14px; border-left: none; border-bottom: none; }
.villz-asignup-card .villz-asignup-corner.bl { bottom: 14px; left: 14px; border-right: none; border-top: none; }
.villz-asignup-card .villz-asignup-corner.br { bottom: 14px; right: 14px; border-left: none; border-top: none; }

.villz-asignup-section-h {
  font-family: var(--font-sc, 'Cormorant SC', Georgia, serif);
  font-size: 10px; letter-spacing: 0.5em;
  color: var(--rose, #c9a17a); text-transform: uppercase;
  border-bottom: 1px solid var(--line, #2a2520);
  padding-bottom: 10px; margin-bottom: 20px;
}
.villz-asignup-section-h:not(:first-of-type) { margin-top: 32px; }

.villz-asignup-fields { display: flex; flex-direction: column; gap: 18px; }
.villz-asignup-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.villz-asignup-row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }

/* Field tokens */
.villz-asignup-label {
  font-family: var(--font-sc, 'Cormorant SC', Georgia, serif);
  font-size: 9px; letter-spacing: 0.4em;
  color: var(--ivory-mute, #6b6459); text-transform: uppercase;
  display: block; margin-bottom: 4px;
}
.villz-asignup-input,
.villz-asignup-select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line, #2a2520);
  padding: 12px 4px;
  color: var(--ivory, #f4ede1);
  font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
  font-size: 19px; font-weight: 300;
  outline: none; transition: border-color 0.25s;
}
.villz-asignup-input:focus,
.villz-asignup-select:focus { border-bottom-color: var(--rose, #c9a17a); }
.villz-asignup-input.is-invalid,
.villz-asignup-select.is-invalid { border-bottom-color: #b56767; }
.villz-asignup-input::placeholder {
  color: var(--ivory-mute, #6b6459); font-style: italic;
}
.villz-asignup-select { appearance: none; cursor: pointer; }
.villz-asignup-select option { background: var(--noir, #0a0908); color: var(--ivory, #f4ede1); }

.villz-asignup-help {
  font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
  font-style: italic; font-size: 12px;
  color: var(--ivory-mute, #6b6459); margin-top: 6px;
}
.villz-asignup-error {
  font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
  font-style: italic; font-size: 13px;
  color: #d4a8a8; margin-top: 6px;
}
.villz-asignup-pwd-rules {
  list-style: none; padding: 0; margin: 8px 0 0;
  font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
  font-style: italic; font-size: 12px;
  color: var(--ivory-mute, #6b6459);
}
.villz-asignup-pwd-rules li { padding: 2px 0; display: flex; align-items: baseline; gap: 8px; }
.villz-asignup-pwd-rules li::before {
  content: '·'; color: var(--rose, #c9a17a); font-style: normal;
}

/* Form-level error */
.villz-asignup-form-error {
  font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
  font-style: italic; font-size: 14px;
  color: #d4a8a8; text-align: center;
  padding: 12px 16px; margin-bottom: 24px;
  border: 1px solid #6e3a3a;
  background: rgba(110, 58, 58, 0.08);
}

/* Service category checkboxes */
.villz-asignup-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.villz-asignup-check-item {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
  font-size: 16px; font-weight: 300;
  color: var(--ivory-dim, #aea79a);
  cursor: pointer;
}
.villz-asignup-check-item input[type="checkbox"] {
  appearance: none;
  width: 14px; height: 14px;
  border: 1px solid var(--line, #2a2520);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.villz-asignup-check-item input[type="checkbox"]:checked {
  border-color: var(--rose, #c9a17a);
  background: var(--rose, #c9a17a);
}
.villz-asignup-check-item:hover input[type="checkbox"] {
  border-color: var(--rose, #c9a17a);
}

/* File input */
.villz-asignup-file-wrap { display: flex; flex-direction: column; gap: 10px; }
.villz-asignup-file-input { display: none; }
.villz-asignup-file-label {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--rose-deep, #a07d5b);
  color: var(--ivory-dim, #aea79a);
  font-family: var(--font-sc, 'Cormorant SC', Georgia, serif);
  font-size: 9px; letter-spacing: 0.4em; text-transform: uppercase;
  cursor: pointer; transition: all 0.25s;
  background: transparent;
}
.villz-asignup-file-label:hover {
  border-color: var(--rose, #c9a17a);
  color: var(--ivory, #f4ede1);
}
.villz-asignup-file-name {
  font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
  font-style: italic; font-size: 13px;
  color: var(--ivory-mute, #6b6459);
}

/* CTA */
.villz-asignup-cta {
  display: block; width: 100%;
  padding: 18px;
  margin-top: 32px;
  background: linear-gradient(180deg, #1a1714, #0d0b09);
  border: 1px solid var(--rose, #c9a17a);
  color: var(--champagne, #e6cba8);
  font-family: var(--font-sc, 'Cormorant SC', Georgia, serif);
  letter-spacing: 0.4em;
  font-size: 12px; text-transform: uppercase;
  cursor: pointer; transition: all 0.3s;
  text-align: center;
}
.villz-asignup-cta:hover {
  color: var(--ivory, #f4ede1);
  border-color: var(--champagne, #e6cba8);
  box-shadow: 0 0 32px rgba(201,161,122,0.22);
}
.villz-asignup-cta:disabled { opacity: 0.5; cursor: not-allowed; }

/* Responsive */
@media (max-width: 960px) {
  .villz-asignup-topbar { padding: 18px 32px; }
  .villz-asignup-hero { padding: 40px 24px 20px; }
  .villz-asignup-card { margin: 24px 24px 56px; }
}

@media (max-width: 720px) {
  .villz-asignup-topbar { padding: 18px 20px; flex-wrap: wrap; gap: 10px; }
  .villz-asignup-hero { padding: 40px 20px 16px; }
  .villz-asignup-h1 { font-size: 38px; }
  .villz-asignup-tag { font-size: 16px; }
  .villz-asignup-card { padding: 32px 20px; margin: 20px 16px 48px; }
  .villz-asignup-row-2,
  .villz-asignup-row-3 { grid-template-columns: 1fr; }
}

/* Legal links — plain Privacy/Terms links at the bottom, on the dark bg. */
.villz-legal-foot {
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-mono, ui-monospace, Menlo, monospace);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.villz-legal-foot a,
.villz-legal-foot a:link,
.villz-legal-foot a:visited {
  color: var(--rose, #c9a17a);
  text-decoration: none;
  transition: color 0.2s ease;
}
.villz-legal-foot a:hover { color: var(--champagne, #e6cba8); }
.villz-legal-foot span { color: var(--ivory-mute, #6b6459); }

/* Legal-consent checkbox rows — match the page palette (the inline links were
   falling back to default browser blue/purple, incl. the visited state). */
.villz-asignup-consent {
  font-family: var(--font-sans, 'Inter', system-ui, sans-serif);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ivory-dim, #aea79a);
}
.villz-asignup-consent a,
.villz-asignup-consent a:link,
.villz-asignup-consent a:visited {
  color: var(--rose, #c9a17a);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.villz-asignup-consent a:hover { color: var(--champagne, #e6cba8); }
.villz-asignup-consent input[type="checkbox"] { accent-color: var(--rose, #c9a17a); }
