/* ═══════════════════════════════════════════════
   FRAMEMATES — SHARED AUTH PAGE STYLES
   Used by: signup.html, login.html, pending.html
   ═══════════════════════════════════════════════ */

:root {
  --color-gold:    #c9a84c;
  --color-gold-lt: #e2c97e;
  --font-serif:    'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --font-sans:     'Montserrat', 'Inter', sans-serif;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

/* No element may push the page sideways. styles.css has this guard for the
   public site; the signed-in pages load auth.css instead and had none, which
   is why only they drifted horizontally on phones and tablets. */
html, body { overflow-x: hidden; max-width: 100%; }
img, video, svg, canvas { max-width: 100%; }

body {
  background: #0a0a0a;
  color: #e5e5e5;
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--color-gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── AUTH NAV ───────────────────────────────── */
.auth-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.auth-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.auth-nav-mark {
  height: 46px;
  width: 46px;
  object-fit: contain;
  object-position: center;
  border-radius: 9px;
  display: block;
}
.auth-nav-brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #f5f0e8;
}
.auth-nav-link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aaa;
}
.auth-nav-link:hover { color: var(--color-gold); text-decoration: none; }

/* ── PAGE WRAPPER ───────────────────────────── */
.auth-page {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px 80px;
}

/* ── FORM CARD ──────────────────────────────── */
.auth-card {
  width: 100%;
  max-width: 620px;
}
.auth-card-header {
  text-align: center;
  margin-bottom: 36px;
}
.auth-card-header h1 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #f5f0e8;
  line-height: 1.2;
}
.auth-card-header p {
  margin-top: 10px;
  font-size: 0.82rem;
  color: #888;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

/* ── FORM SECTIONS ──────────────────────────── */
.form-section {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 20px;
}
.form-section-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-gold);
  margin-bottom: 6px;
}
.form-section-desc {
  font-size: 0.74rem;
  color: #666;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
  line-height: 1.6;
}
.form-section-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 20px 0;
}

/* ── FIELD ROW & COLS ───────────────────────── */
.field-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}
.field-row.two   { grid-template-columns: 1fr 1fr; }
.field-row.three { grid-template-columns: 1fr 1fr 1fr; }
.field-row.one   { grid-template-columns: 1fr; }

/* ── FIELD ──────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
}
.field label .req { color: var(--color-gold); margin-left: 2px; }

.field input,
.field select,
.field textarea {
  background: #0f0f0f;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #e5e5e5;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  padding: 11px 14px;
  width: 100%;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  background: #111;
}
.field input::placeholder,
.field textarea::placeholder { color: #444; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
.field select option { background: #1a1a1a; }
.field textarea { resize: vertical; min-height: 100px; line-height: 1.6; }

.field-hint {
  font-size: 0.68rem;
  color: #555;
  letter-spacing: 0.03em;
}
.field-error {
  font-size: 0.68rem;
  color: #e05c5c;
  letter-spacing: 0.03em;
  display: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #e05c5c; }
.field.has-error .field-error { display: block; }

/* ── CHECKBOXES ─────────────────────────────── */
.check-group { display: flex; flex-direction: column; gap: 12px; }
.check-item  { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.check-item input[type="checkbox"] {
  width: 18px; height: 18px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  background: #0f0f0f;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--color-gold);
}
.check-item span {
  font-size: 0.78rem;
  color: #aaa;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.check-item a { color: var(--color-gold); }

/* ── SUBMIT AREA ────────────────────────────── */
.auth-submit {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.btn-auth-submit {
  width: 100%;
  max-width: 320px;
  padding: 14px 28px;
  background: var(--color-gold);
  color: #0a0a0a;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.btn-auth-submit:hover { background: var(--color-gold-lt); }
.btn-auth-submit:disabled { opacity: 0.45; cursor: not-allowed; }

.auth-alt-link {
  font-size: 0.76rem;
  color: #666;
  letter-spacing: 0.04em;
}
.auth-alt-link a { color: var(--color-gold); }

/* ── GLOBAL ALERT BANNER ────────────────────── */
.auth-alert {
  display: none;
  padding: 13px 18px;
  border-radius: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  line-height: 1.5;
}
.auth-alert.error   { background: rgba(224,92,92,0.12); border: 1px solid rgba(224,92,92,0.3); color: #e07070; }
.auth-alert.success { background: rgba(74,200,120,0.12); border: 1px solid rgba(74,200,120,0.3); color: #70c890; }
.auth-alert.show    { display: block; }

/* ── SIMPLE LOGIN CARD ──────────────────────── */
.login-card {
  width: 100%;
  max-width: 440px;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 44px 40px;
  margin: 0 auto;
}
.login-card .auth-card-header { margin-bottom: 28px; }

/* ── PENDING PAGE ───────────────────────────── */
.pending-card {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 24px;
}
.pending-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(201,168,76,0.12);
  border: 1.5px solid rgba(201,168,76,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 28px;
}
.pending-card h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: #f5f0e8;
  margin-bottom: 12px;
}
.pending-card p {
  font-size: 0.84rem;
  color: #888;
  line-height: 1.8;
  margin-bottom: 10px;
}

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 600px) {
  .auth-nav { padding: 16px 18px; }
  .auth-nav-brand { display: none; }
  .form-section { padding: 20px 16px; }
  .field-row.two,
  .field-row.three { grid-template-columns: 1fr; }
  .login-card { padding: 32px 20px; }
  .auth-card-header h1 { font-size: 1.8rem; }
}
