* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--main-bg);
  color: var(--text-dark);
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6,
p, span, label, input, select,
textarea, button, a, li, td, th {
  font-family: var(--font-main);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

ul {
  list-style: none;
}

img, svg {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--clear-blue-light);
  color: #fff;
}

/* Shared form primitives (originally login.css-only; moved here once dashboard's own
   "Add" forms needed the same look, so every page that loads base.css gets them free). */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.login-form label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.65rem;
}

.login-form input,
.login-form select,
.login-form textarea {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  color: var(--text-dark);
  font-family: inherit;
}

.login-form input:focus,
.login-form select:focus,
.login-form textarea:focus {
  outline: 2px solid var(--clear-blue-light);
  border-color: var(--clear-blue);
}

.login-error {
  background: #FDECEA;
  border: 1px solid var(--danger);
  color: #B71C1C;
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.form-success {
  background: #E8F5E9;
  border: 1px solid #2E7D32;
  color: #1B5E20;
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.btn-primary {
  margin-top: 1.25rem;
  background: var(--clear-blue);
  color: #fff;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: bold;
  transition: background 0.15s ease;
}

.btn-primary:hover:not(:disabled) {
  background: var(--clear-blue-dark);
}

.btn-primary:disabled {
  background: var(--border-color);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* Session-risk step-up modal (shared/js/session.js's prenodiusShowStepUpModal(),
   Master Prompt Initiative Session 18) — loaded on every page via base.css. */
.prenodius-stepup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 37, 69, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.prenodius-stepup-modal {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  width: 90%;
  max-width: 360px;
}

.prenodius-stepup-modal h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--text-dark);
}

.prenodius-stepup-modal p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.prenodius-stepup-cancel {
  margin-top: 0.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.85rem;
}
