/* ═══════════════════════════════════════════
   Styles for login and register pages
   ═══════════════════════════════════════════ */

/* ── Auth navbar ── */
.bm-navbar-auth {
  background: var(--bm-950);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

/* ── Page wrapper ── */
.bm-auth-wrap {
  min-height: calc(100vh - 64px);
  background: var(--bm-50);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

/* ── Card ── */
.bm-auth-card {
  background: #fff;
  border: 0.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 24px rgba(37,99,235,.06);
}

/* ── Heading ── */
.bm-auth-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--bm-950);
  margin: 0 0 6px;
  letter-spacing: -.3px;
}
.bm-auth-sub {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 28px;
  line-height: 1.5;
}

/* ── Alerts ── */
.bm-alert {
  font-size: 13px;
  padding: 11px 14px;
  border-radius: 8px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.bm-alert-danger {
  background: #fef2f2;
  border: 0.5px solid #fecaca;
  color: #991b1b;
}
.bm-alert-success {
  background: #f0fdf4;
  border: 0.5px solid #bbf7d0;
  color: #166534;
}

/* ── Form fields ── */
.bm-field {
  margin-bottom: 18px;
}
.bm-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--bm-900);
  margin-bottom: 6px;
}
.bm-field input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--bm-950);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.bm-field input::placeholder {
  color: #94a3b8;
}
.bm-field input:hover {
  border-color: var(--bm-300);
}
.bm-field input:focus {
  border-color: var(--bm-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

/* ── Submit button ── */
.btn-auth-submit {
  width: 100%;
  padding: 11px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--bm-600);
  border: none;
  border-radius: 9px;
  cursor: pointer;
  margin-top: 8px;
  transition: background .15s, box-shadow .15s, transform .1s;
}
.btn-auth-submit:hover {
  background: var(--bm-700);
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
  transform: translateY(-1px);
}
.btn-auth-submit:active {
  transform: translateY(0);
}

/* ── Footer link ── */
.bm-auth-footer {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  margin: 20px 0 0;
}
.bm-auth-footer a {
  color: var(--bm-600);
  font-weight: 500;
  text-decoration: none;
}
.bm-auth-footer a:hover {
  color: var(--bm-700);
  text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .bm-auth-card {
    padding: 28px 20px;
  }
}

/* ── Auth logo ── */
.bm-auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 24px;
}

/* ── Two column row ── */
.bm-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── Optional label ── */
.bm-label-optional {
  font-weight: 400;
  color: #cbd5e1;
  font-size: 11px;
}

/* ── Divider ── */
.bm-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 16px;
}
.bm-divider::before,
.bm-divider::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: #e2e8f0;
}
.bm-divider span {
  font-size: 11px;
  color: #cbd5e1;
  white-space: nowrap;
}

/* ── Password strength ── */
.bm-strength-bar {
  height: 3px;
  border-radius: 2px;
  background: #e2e8f0;
  margin-top: 6px;
  overflow: hidden;
}
.bm-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width .3s, background .3s;
}
.bm-strength-label {
  font-size: 11px;
  margin-top: 3px;
  display: block;
}

/* ── Terms ── */
.bm-auth-terms {
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
  margin: 14px 0 0;
  line-height: 1.6;
}
.bm-auth-terms a {
  color: var(--bm-600);
  text-decoration: none;
}
.bm-auth-terms a:hover {
  text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 400px) {
  .bm-row-2 { grid-template-columns: 1fr; }
}