@import url('../site.css');

body { touch-action: manipulation; }

/* ── Auth layout ─────────────────────────────────────────── */
.page-auth > main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 3.5rem;
}

.page-auth .lux-form-wrap {
  margin: 0;
}

/* ── Card polish ─────────────────────────────────────────── */
.page-auth .lux-form-card {
  padding: 0;
  border-color: var(--lux-border-strong);
}

.auth-card-head {
  padding: 2rem 2rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--lux-border);
  position: relative;
}

/* Gold accent line at top of card */
.auth-card-head::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lux-gold), transparent);
  border-radius: 0 0 4px 4px;
}

.auth-card-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.75rem;
  filter: drop-shadow(0 4px 12px rgba(139, 21, 56, 0.4));
}

.auth-card-brand {
  margin: 0 0 0.5rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--lux-gold);
}

.auth-card-head h1 {
  margin: 0 0 0.35rem;
  font-family: var(--lux-font-display);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--lux-text);
}

.auth-card-sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--lux-text-muted);
}

.auth-card-body {
  padding: 1.5rem 2rem;
}

.auth-card-body .field input {
  min-height: 46px;
  font-size: 0.98rem;
}

.auth-card-body .field-hint {
  margin: 0.4rem 0 0;
  font-size: 0.76rem;
  color: var(--lux-text-muted);
}

.auth-card-body .lux-form-actions {
  margin-top: 1.5rem;
}

.auth-card-foot {
  padding: 1.1rem 2rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--lux-border);
}

.auth-card-foot p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--lux-text-muted);
}

.auth-card-foot p + p {
  margin-top: 0.5rem;
}

.auth-card-foot a {
  color: var(--lux-gold-light);
  font-weight: 500;
  text-decoration: none;
}

.auth-card-foot a:hover {
  color: #fff;
}

/* ── Compact footer on auth pages ───────────────────────── */
.page-auth .lux-footer-inner {
  display: none;
}

/* ── Custom checkboxes ───────────────────────────────────── */
.auth-consent { display: grid; gap: 0.65rem; margin: 0.5rem 0 0; }

.auth-consent .checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--lux-text-muted);
  cursor: pointer;
  user-select: none;
}

.auth-consent .checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(201, 169, 98, 0.4);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: border-color 0.18s, background 0.18s;
}

.auth-consent .checkbox-label input[type="checkbox"]:hover {
  border-color: var(--lux-gold);
}

.auth-consent .checkbox-label input[type="checkbox"]:checked {
  background: var(--lux-gold);
  border-color: var(--lux-gold);
}

/* Checkmark drawn with a pseudo-element */
.auth-consent .checkbox-label input[type="checkbox"]::after {
  content: '';
  display: block;
  position: absolute;
  opacity: 0;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 9px;
  border: 2px solid #0a0a0a;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  transition: opacity 0.12s;
}

.auth-consent .checkbox-label input[type="checkbox"]:checked::after {
  opacity: 1;
}

.auth-consent .checkbox-label:has(input:checked) {
  color: var(--lux-text-soft);
}

.auth-consent .checkbox-label a {
  color: var(--lux-gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(224, 201, 137, 0.4);
}

.auth-consent .checkbox-label a:hover {
  text-decoration-color: var(--lux-gold-light);
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .page-auth > main {
    align-items: flex-start;
    padding-top: 1.5rem;
  }

  .auth-card-head,
  .auth-card-body,
  .auth-card-foot {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
