/* Shared components: modal overlay, tabs, form fields. Loaded on every page. */

.overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(6, 7, 14, 0.8);
  backdrop-filter: blur(12px);
  z-index: 40;
}
.overlay.show { display: flex; animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: min(420px, 100%);
  background: linear-gradient(180deg, rgba(20, 22, 40, 0.96), rgba(13, 15, 28, 0.96));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem 1.8rem;
  text-align: center;
}
.brand-lg { font-size: 1.5rem; font-weight: 850; letter-spacing: -0.02em; }
.brand-lg .dot { color: var(--cyan); }
.modal-sub { color: var(--muted); margin: 0.4rem 0 1.3rem; font-size: 0.95rem; }
.modal-foot { color: var(--faint); font-size: 0.78rem; margin-top: 1rem; }

.tabs {
  display: flex;
  gap: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.3rem;
  margin-bottom: 1.2rem;
}
.tab {
  flex: 1;
  font: inherit;
  font-weight: 650;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 9px;
  padding: 0.6rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.tab.active { background: var(--surface-2); color: var(--text); }

.field { display: block; text-align: left; margin-bottom: 1rem; }
.field > span { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 0.4rem; font-weight: 600; }
.field small { color: var(--faint); font-weight: 500; }
.field input {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus { outline: none; border-color: var(--indigo); box-shadow: var(--ring); }
.field input::placeholder { color: var(--faint); }

.form-error { color: var(--bad); font-size: 0.85rem; min-height: 1.2em; margin-bottom: 0.6rem; text-align: left; }

.modal .btn-primary { width: 100%; }
