/* ── Shared auth-page styles (login + register) ─────────────────────────────
   The card chrome, fields, buttons and error box are identical on both pages.
   Each page keeps only its own .login-card sizing and page-specific widgets
   (reset-password modal, registration grid/colour picker) in its inline style. */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg);
}

.login-wrap {
  position: relative;
  flex: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}
/* Darkening + amber wash overlay so the card stays legible over the art */
.login-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(var(--accent-rgb), 0.08), transparent 55%),
    linear-gradient(rgba(16,14,11,0.72), rgba(12,10,8,0.9));
  pointer-events: none;
}
.login-wrap > * { position: relative; z-index: 1; }

.login-card {
  position: relative;
  background: linear-gradient(135deg, rgba(28,28,26,0.94) 0%, rgba(20,20,19,0.94) 100%);
  border: 1px solid rgba(var(--bronze-rgb), 0.22);
  border-radius: var(--rounded-xl);
  width: 100%;
  backdrop-filter: blur(10px);
  box-shadow:
    var(--shadow-modal),
    0 0 40px rgba(var(--accent-rgb), 0.08),
    inset 0 1px 0 rgba(var(--accent-rgb), 0.08);
  animation: cardIn 0.55s var(--ease-out-expo) both;
}
/* Soft amber rim glow */
.login-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.35), transparent 40%, transparent 70%, rgba(var(--accent-rgb), 0.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.login-logo {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 0 14px rgba(var(--accent-rgb), 0.4));
}

.login-title {
  font-family: var(--title);
  font-size: 1.7rem;
  color: var(--accent);
  text-align: center;
  margin: 0 0 6px;
  letter-spacing: 0.05em;
  text-shadow: 0 0 22px rgba(var(--accent-rgb), 0.3);
}

.login-sub {
  text-align: center;
  color: var(--smoke);
  font-size: 13px;
  font-style: italic;
  margin: 0 0 28px;
}

.login-field { margin-bottom: 16px; }

.login-label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 6px;
}

.login-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(var(--bronze-rgb), 0.14);
  border-radius: var(--rounded-md);
  padding: 11px 14px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-ui);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.login-input:focus {
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

/* Primary button — flat --accent, the same yellow as every other CTA. */
.login-btn {
  width: 100%;
  margin-top: 8px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--rounded-md);
  color: #0e0e0d;
  font-family: var(--title);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 13px;
  cursor: pointer;
  transition: filter 0.22s, box-shadow 0.25s, transform 0.2s;
}
.login-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.4), 0 4px 16px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}
.login-btn:active { transform: translateY(0) scale(0.98); }
.login-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; filter: none; }

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  color: var(--deep-smoke);
  font-size: 12px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid rgba(var(--bronze-rgb), 0.14);
}

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(var(--bronze-rgb), 0.16);
  border-radius: var(--rounded-md);
  color: #ccc;
  font-size: 14px;
  font-family: var(--font-ui);
  padding: 11px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-google:hover { background: rgba(255,255,255,0.09); border-color: rgba(var(--bronze-rgb), 0.4); }
.btn-google:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-google svg { flex-shrink: 0; }

.login-error {
  background: rgba(224,80,80,0.12);
  border: 1px solid rgba(224,80,80,0.3);
  border-radius: var(--rounded-sm);
  color: var(--hazard-red);
  font-size: 13px;
  padding: 9px 12px;
  margin-top: 14px;
  display: none;
}
.login-error.show { display: block; }

.login-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--deep-smoke);
}
.login-footer a { color: var(--accent); text-decoration: none; }
.login-footer a:hover { text-decoration: underline; }

/* Phones keep the artwork — it is the only thing on this page that says where
   you are — but not the parallax: a fixed background on iOS jitters and
   repaints the whole page on every scroll. */
@media (max-width: 600px) {
  .login-wrap { background-attachment: scroll; background-position: 40% top; }
}
