/* ═══════════════════════════════════════════════════════════════
   AUTH PAGES — login / register / password reset
   Shared by resources/views/auth/*.blade.php

   These are standalone pages (they don't extend layout.default), so
   the brand palette is restated here. Same tokens as the storefront:
   gold #C9920A on near-black, Jost headings, Arial body.
═══════════════════════════════════════════════════════════════ */

:root {
  --auth-gold: #C9920A;
  --auth-gold-btn: #A87808;    /* 5:1 on white text — WCAG AA */
  --auth-gold-btn-hi: #8a6608;
  --auth-dark: #0F1012;
  --auth-offwhite: #F8F7F5;
  --auth-border: #E4E3DF;
  --auth-text: #1A1A1A;
  --auth-muted: #6E6E6E;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 14px;
  color: var(--auth-text);
  background: var(--auth-dark);
  /* Same gold glow as the storefront hero */
  background-image:
    radial-gradient(ellipse 55% 70% at 15% 20%, rgba(201,146,10,0.20) 0%, transparent 70%),
    radial-gradient(ellipse 45% 60% at 88% 85%, rgba(201,146,10,0.12) 0%, transparent 65%);
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  -webkit-font-smoothing: antialiased;
}

.auth-wrapper { width: 100%; max-width: 440px; }

/* ── Brand lockup ── */
.auth-logo { text-align: center; margin-bottom: 22px; }
.auth-logo img { height: 54px; width: auto; display: inline-block; }
.auth-logo .brand-name {
  display: block;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 15px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin-top: 10px;
}

/* ── Card ── */
.auth-card {
  background: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 34px 34px 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.auth-card h1 {
  font-family: 'Jost', Arial, sans-serif;
  font-size: 24px; font-weight: 800;
  color: var(--auth-dark);
  margin: 0 0 5px;
  letter-spacing: -0.3px;
}
.auth-card .subtitle {
  font-size: 13.5px;
  color: var(--auth-muted);
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--auth-border);
}

/* ── Alert (e.g. expired session after a 419) ── */
.auth-alert {
  display: flex; align-items: flex-start; gap: 10px;
  background: #FDF3DC;
  border: 1.5px solid rgba(201,146,10,0.45);
  border-left: 3px solid var(--auth-gold);
  border-radius: 9px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: #6b4f06;
}
.auth-alert i { color: var(--auth-gold); font-size: 15px; margin-top: 1px; flex-shrink: 0; }

/* ── Fields ── */
.form-label {
  font-family: 'Jost', Arial, sans-serif;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.3px;
  color: #3a3a3a;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: var(--auth-offwhite);
  border: 1.5px solid var(--auth-border);
  border-radius: 9px;
  color: var(--auth-text);
  font-family: Arial, sans-serif;
  font-size: 14px;
  padding: 12px 14px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.form-control:focus {
  background: #fff;
  border-color: var(--auth-gold);
  box-shadow: 0 0 0 3px rgba(201,146,10,0.15);
  color: var(--auth-text);
  outline: none;
}
.form-control::placeholder { color: #A9A9A4; }
.form-control.is-invalid { border-color: #D93025; background: #FEF6F5; }

.invalid-feedback, .text-danger {
  display: block;
  font-size: 12px;
  color: #C5221F !important;
  margin-top: 6px;
}

/* ── Checkboxes ── */
.form-check { display: flex; align-items: flex-start; gap: 9px; }
.form-check-input {
  width: 17px; height: 17px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--auth-gold);
  cursor: pointer;
}
.form-check-label {
  font-size: 13px;
  color: #4a4a4a;
  line-height: 1.55;
  cursor: pointer;
}

/* Consent block — framed so it reads as a deliberate step, not filler */
.auth-consent {
  background: var(--auth-offwhite);
  border: 1.5px solid var(--auth-border);
  border-left: 3px solid var(--auth-gold);
  border-radius: 9px;
  padding: 13px 15px;
  margin-bottom: 18px;
  transition: border-color 0.18s, background 0.18s;
}
.auth-consent:has(.form-check-input:checked) {
  background: #FDF9EF;
  border-color: rgba(201,146,10,0.45);
  border-left-color: var(--auth-gold);
}
.auth-consent.is-error { border-color: #E8A9A4; background: #FEF6F5; }

.auth-legal-link {
  color: var(--auth-gold-btn-hi);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-legal-link:hover { color: var(--auth-gold); }

/* ── Primary button ── */
.btn-primary-auth {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 16px;
  background: var(--auth-gold-btn);
  border: none;
  border-radius: 9px;
  color: #fff;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 14.5px; font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  box-shadow: 0 4px 14px rgba(201,146,10,0.28);
}
.btn-primary-auth:hover:not(:disabled) {
  background: var(--auth-gold-btn-hi);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(201,146,10,0.34);
}
/* Muted grey rather than a washed-out brown */
.btn-primary-auth:disabled {
  background: #E6E5E1;
  color: #9C9C97;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* ── Links & footer ── */
.forgot-link {
  font-size: 12.5px;
  color: var(--auth-muted);
  text-decoration: none;
}
.forgot-link:hover { color: var(--auth-gold-btn-hi); text-decoration: underline; }

.divider { border: 0; border-top: 1px solid var(--auth-border); margin: 22px 0 16px; }

.auth-footer {
  text-align: center;
  font-size: 13px;
  color: var(--auth-muted);
}
.auth-footer a {
  color: var(--auth-gold-btn-hi);
  text-decoration: none;
  font-weight: 700;
}
.auth-footer a:hover { text-decoration: underline; }

/* Back to store */
.auth-back {
  display: block;
  text-align: center;
  margin-top: 18px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}
.auth-back:hover { color: var(--auth-gold); }

/* ── Responsive ── */
@media (max-width: 575.98px) {
  body { padding: 22px 14px; align-items: flex-start; }
  .auth-wrapper { max-width: 100%; }
  .auth-logo { margin-bottom: 18px; }
  .auth-logo img { height: 46px; }
  .auth-card { padding: 26px 20px 22px; border-radius: 14px; }
  .auth-card h1 { font-size: 21px; }
  .auth-card .subtitle { margin-bottom: 20px; padding-bottom: 16px; }
  .form-control { padding: 11px 13px; }
  .auth-consent { padding: 12px 13px; }
  .form-check-label { font-size: 12.5px; }
}
