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

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

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

.villz-csignup {
  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-csignup-topbar {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 56px;
  border-bottom: 1px solid var(--line, #2a2520);
}
.villz-csignup-mark-row { display: flex; align-items: center; gap: 14px; }
.villz-csignup-mark {
  width: 32px; height: 32px; border-radius: 50%;
  background-image: url('villz-logo.jpg');
  background-size: cover; background-position: center;
  border: 1px solid var(--rose-deep, #a07d5b);
}
.villz-csignup-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-csignup-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-csignup-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-csignup-back:hover { color: var(--rose, #c9a17a); }

/* Hero */
.villz-csignup-hero {
  padding: 56px 32px 24px;
  text-align: center;
}
.villz-csignup-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-csignup-h1 {
  font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
  font-weight: 300; font-size: 56px;
  margin: 14px 0 8px;
}
.villz-csignup-h1 em { font-style: italic; }
.villz-csignup-tag {
  font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
  font-style: italic; font-size: 18px;
  color: var(--ivory-dim, #aea79a);
}

/* Card */
.villz-csignup-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-csignup-card .villz-csignup-corner {
  position: absolute; width: 14px; height: 14px;
  border: 1px solid var(--rose, #c9a17a);
}
.villz-csignup-card .villz-csignup-corner.tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.villz-csignup-card .villz-csignup-corner.tr { top: 14px; right: 14px; border-left: none; border-bottom: none; }
.villz-csignup-card .villz-csignup-corner.bl { bottom: 14px; left: 14px; border-right: none; border-top: none; }
.villz-csignup-card .villz-csignup-corner.br { bottom: 14px; right: 14px; border-left: none; border-top: none; }

.villz-csignup-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-csignup-section-h:not(:first-of-type) { margin-top: 32px; }

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

/* Field tokens */
.villz-csignup-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-csignup-input,
.villz-csignup-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-csignup-input:focus,
.villz-csignup-select:focus { border-bottom-color: var(--rose, #c9a17a); }
.villz-csignup-input.is-invalid,
.villz-csignup-select.is-invalid { border-bottom-color: #b56767; }
.villz-csignup-input::placeholder {
  color: var(--ivory-mute, #6b6459); font-style: italic;
}
.villz-csignup-select { appearance: none; cursor: pointer; }
.villz-csignup-select option { background: var(--noir, #0a0908); color: var(--ivory, #f4ede1); }

.villz-csignup-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-csignup-error {
  font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
  font-style: italic; font-size: 13px;
  color: #d4a8a8; margin-top: 6px;
}
.villz-csignup-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-csignup-pwd-rules li { padding: 2px 0; display: flex; align-items: baseline; gap: 8px; }
.villz-csignup-pwd-rules li::before {
  content: '·'; color: var(--rose, #c9a17a); font-style: normal;
}

/* Form-level error (e.g. flash messages) */
.villz-csignup-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);
}

/* CTA */
.villz-csignup-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-csignup-cta:hover {
  color: var(--ivory, #f4ede1);
  border-color: var(--champagne, #e6cba8);
  box-shadow: 0 0 32px rgba(201,161,122,0.22);
}
.villz-csignup-cta:disabled { opacity: 0.5; cursor: not-allowed; }

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

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