/* ==============================================================
   Auth UI Styles — matches original site (navy + accent orange)
   ============================================================== */

/* Login modal */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-modal[hidden] {
  display: none;
}
.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.auth-modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: var(--radius-lg, 12px);
  padding: 36px 32px 28px;
  box-shadow: 0 20px 60px rgba(10, 22, 40, 0.3);
  max-height: 90vh;
  overflow-y: auto;
}
.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: var(--gray-mid, #546E7A);
  cursor: pointer;
  transition: background 0.15s;
}
.auth-modal-close:hover {
  background: var(--gray-pale, #ECEFF1);
  color: var(--navy, #0A1628);
}

/* Tabs */
.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--gray-pale, #ECEFF1);
  margin-bottom: 24px;
  gap: 0;
}
.auth-tab {
  flex: 1;
  padding: 12px 8px;
  background: transparent;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-mid, #546E7A);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.auth-tab.active {
  color: var(--accent, #E85F00);
  border-bottom-color: var(--accent, #E85F00);
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-form[hidden] { display: none; }
.auth-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy, #0A1628);
  margin: 0;
}
.auth-sub {
  font-size: 14px;
  color: var(--gray-mid, #546E7A);
  margin: 0 0 8px;
  line-height: 1.5;
}
.auth-form label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy, #0A1628);
  gap: 6px;
}
.auth-form input {
  padding: 11px 14px;
  border: 1.5px solid var(--gray-pale, #ECEFF1);
  border-radius: var(--radius, 8px);
  font-size: 15px;
  color: var(--navy, #0A1628);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-form input:focus {
  outline: none;
  border-color: var(--accent, #E85F00);
  box-shadow: 0 0 0 3px rgba(232, 101, 10, 0.12);
}
.auth-forgot {
  font-size: 13px;
  color: var(--accent, #E85F00);
  text-decoration: none;
  text-align: right;
  margin-top: -6px;
}
.auth-forgot:hover {
  text-decoration: underline;
}
.btn-block {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}
.auth-error {
  font-size: 13px;
  color: #dc2626;
  min-height: 18px;
  margin-top: 4px;
}

/* Mobile */
@media (max-width: 520px) {
  .auth-modal-card {
    padding: 28px 20px 20px;
    max-width: 100%;
  }
  .auth-title {
    font-size: 20px;
  }
}

/* Nav button consistency — make sure injected button aligns well */
#auth-nav-btn {
  white-space: nowrap;
}