/* ============================================================
   BAD MOON CLUB — auth.css
   Styles for register.html and login.html
   ============================================================ */

/* ── AUTH PAGE LAYOUT ─────────────────────────────────────── */
.auth-page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem 1rem;
}

.auth-bg {
  position: fixed;
  inset: 0;
  background-image: url('assets/bad-moon-club-footer.jpg');
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.25);
  z-index: 0;
}

.auth-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* ── HEADER ───────────────────────────────────────────────── */
.auth-header {
  text-align: center;
}

.auth-logo-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.auth-logo-img {
  width: clamp(160px, 40vw, 240px);
  height: auto;
  display: block;
}

.auth-subheader-img {
  width: clamp(180px, 50vw, 300px);
  height: auto;
  display: block;
}

/* ── CARD ─────────────────────────────────────────────────── */
.auth-card {
  width: 100%;
  background: rgba(5, 2, 10, 0.92);
  border: 1px solid rgba(76, 202, 42, 0.2);
  padding: 2rem 2rem 2.25rem;
}

.auth-card h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 0.35rem;
  line-height: 1;
}

.auth-intro {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 1.75rem;
}

/* ── FORM FIELDS ──────────────────────────────────────────── */
.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 0.45rem;
}

.label-link {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8rem;
  color: #4cca2a;
  transition: color 0.15s ease;
}

.label-link:hover {
  color: #7af050;
}

.field input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  border-radius: 0;
}

.field input::placeholder {
  color: #555;
}

.field input:focus {
  border-color: rgba(76, 202, 42, 0.6);
  background: rgba(76, 202, 42, 0.04);
}

.field input:focus-visible {
  outline: 2px solid rgba(76, 202, 42, 0.4);
  outline-offset: 2px;
}

.field input.invalid {
  border-color: rgba(220, 60, 60, 0.6);
}

.field-hint {
  display: block;
  font-size: 0.75rem;
  color: #555;
  margin-top: 0.35rem;
}

/* Password show/hide wrapper */
.input-wrap {
  position: relative;
}

.input-wrap input {
  padding-right: 3rem;
}

.toggle-pw {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}

.toggle-pw:hover {
  color: #aaa;
}

/* ── MESSAGES ─────────────────────────────────────────────── */
.auth-message {
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.auth-error {
  background: rgba(200, 40, 40, 0.15);
  border: 1px solid rgba(200, 40, 40, 0.4);
  color: #f08080;
}

.auth-success {
  background: rgba(76, 202, 42, 0.1);
  border: 1px solid rgba(76, 202, 42, 0.3);
  color: #7af050;
}

/* ── SUBMIT BUTTON ────────────────────────────────────────── */
.btn-full {
  width: 100%;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  border: none;
}

.btn-full:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Spinner */
.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── SWITCH LINK ──────────────────────────────────────────── */
.auth-switch {
  text-align: center;
  font-size: 0.875rem;
  color: #666;
  margin-top: 1.5rem;
}

.auth-switch a {
  color: #4cca2a;
  font-weight: 600;
  transition: color 0.15s ease;
}

.auth-switch a:hover {
  color: #7af050;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.auth-footer {
  text-align: center;
}

.auth-footer p {
  font-size: 0.75rem;
  color: #444;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 480px) {
  .auth-card {
    padding: 1.5rem 1.25rem 1.75rem;
  }
}
