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

   Standalone pages (they don't extend layout.default), so the palette
   is restated here. Light, minimal Clotya-style look: white page,
   Jost everywhere, thin grey borders, solid black primary button.
═══════════════════════════════════════════════════════════════ */

:root {
  --auth-gold: #FBB62F;
  --auth-gold-hi: #E09A12;
  --auth-text: #1c1d1f;
  --auth-muted: #6b6d70;
  --auth-border: #e4e5e7;
  --auth-soft: #f6f6f7;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  color: var(--auth-text);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Brand lockup ── */
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo img { height: 72px; width: auto; display: inline-block; }
.auth-logo .brand-name { display: none; }

/* ── Form block (no card chrome) ── */
.auth-card { background: transparent; padding: 0; }
.auth-card h1 {
  font-family: 'Jost', sans-serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--auth-text);
  text-align: center;
  margin: 0 0 6px;
  letter-spacing: -0.2px;
}
.auth-card .subtitle {
  font-size: 14px;
  color: var(--auth-muted);
  text-align: center;
  margin: 0 0 30px;
}

/* ── Alert (e.g. expired session after a 419) ── */
.auth-alert {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fff8e6;
  border: 1px solid #f5d98f;
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
  color: #6b4f06;
}
.auth-alert i { color: var(--auth-gold-hi); font-size: 16px; margin-top: 2px; flex-shrink: 0; }

/* ── Fields ── */
.form-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--auth-text);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  height: 48px;
  background: #fff;
  border: 1px solid var(--auth-border);
  border-radius: 4px;
  color: var(--auth-text);
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  padding: 0 15px;
  transition: border-color 0.16s ease;
}
.form-control:focus {
  border-color: var(--auth-text);
  outline: none;
}
.form-control::placeholder { color: #a3a5a8; }
.form-control.is-invalid { border-color: #d93025; }

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

/* ── Checkboxes ── */
.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check-input {
  width: 16px; height: 16px;
  margin: 3px 0 0;
  flex-shrink: 0;
  accent-color: var(--auth-text);
  cursor: pointer;
}
.form-check-label {
  font-size: 14px;
  color: var(--auth-muted);
  line-height: 1.55;
  cursor: pointer;
}

.auth-consent { margin-bottom: 22px; }
.auth-consent.is-error .form-check-label { color: #c5221f; }

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

/* ── Primary button ── */
.btn-primary-auth {
  width: 100%;
  height: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--auth-text);
  border: none;
  border-radius: 4px;
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.btn-primary-auth:hover:not(:disabled) { background: var(--auth-gold); color: var(--auth-text); }
.btn-primary-auth:disabled {
  background: #d9dadc;
  color: #8a8c8f;
  cursor: not-allowed;
}

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

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

.auth-footer {
  text-align: center;
  font-size: 14px;
  color: var(--auth-muted);
}
.auth-footer a {
  color: var(--auth-text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-footer a:hover { color: var(--auth-gold-hi); }

/* Back to store */
.auth-back {
  display: block;
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--auth-muted);
  text-decoration: none;
}
.auth-back:hover { color: var(--auth-text); }

/* ── Responsive ── */
@media (max-width: 575.98px) {
  body { padding: 28px 18px; align-items: flex-start; }
  .auth-logo { margin-bottom: 24px; }
  .auth-logo img { height: 60px; }
  .auth-card h1 { font-size: 24px; }
  .auth-card .subtitle { margin-bottom: 24px; }
}
