/* Battle Barge — shared auth modal styles
   Used by hub.html, hh/index.html, tow/index.html. The modal markup
   lives in templates/bb/_auth_modal.html; behavior in
   static/bb/js/bb-auth-modal.js. */

.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}
.auth-modal-backdrop.open { display: flex; }
.auth-modal-card {
  position: relative;
  background: #131319;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 32px 28px;
  max-width: 420px;
  width: 100%;
  color: #e6e8eb;
}
.auth-modal-title { margin: 0 0 16px; font-size: 1.25rem; letter-spacing: 0.12em; text-transform: uppercase; }
.auth-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid #2a2a3a; }
.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: #7a8599;
  padding: 10px 0;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-family: inherit;
}
.auth-tab.active { color: #d4af37; border-bottom-color: #d4af37; }
.auth-pane { display: none; }
.auth-pane.active { display: block; }
.auth-field {
  display: block;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: #0b0b10;
  border: 1px solid #2a2a3a;
  border-radius: 6px;
  color: #e6e8eb;
  font-size: 0.95rem;
  font-family: inherit;
  min-height: 44px;
  box-sizing: border-box;
}
.auth-field:focus { outline: 2px solid #d4af37; outline-offset: -2px; border-color: #d4af37; }
.auth-submit {
  width: 100%;
  padding: 12px;
  background: #d4af37;
  color: #08080d;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  min-height: 44px;
}
.auth-submit:hover { background: #e4bf47; }
.auth-submit:disabled { background: #5a4a17; cursor: wait; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #7a8599;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 16px 0;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #2a2a3a; }
.auth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  min-height: 44px;
  font-family: inherit;
}
.auth-google:hover { background: #f8f8f8; }
.auth-small-links { display: flex; justify-content: space-between; margin-top: 12px; font-size: 0.8rem; }
.auth-small-links a { color: #7a8599; text-decoration: none; }
.auth-small-links a:hover { color: #d4af37; }
.auth-error {
  color: #ff8080;
  background: rgba(255, 128, 128, 0.08);
  border: 1px solid rgba(255, 128, 128, 0.3);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 12px;
  display: none;
}
.auth-error.show { display: block; }
.auth-success {
  color: #80ff80;
  background: rgba(128, 255, 128, 0.08);
  border: 1px solid rgba(128, 255, 128, 0.3);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 12px;
  display: none;
}
.auth-success.show { display: block; }
.auth-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: none;
  color: #7a8599;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.auth-close:hover { color: #e6e8eb; }
