
/* ----------------------------
   TYPOGRAPHY
----------------------------- */
h1 {
  font-family: var(--font-heading);
  color: var(--text-body);
}

h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  color: var(--text-body);
}

p {
  font-family: var(--font-body);
  color: var(--text-body);
}

/* ----------------------------
   GLOBAL BUTTON STYLES
----------------------------- */
.btn-success,
.btn-primary {
  background-color: var(--btn-primary-bg) !important;
  border-color: var(--btn-primary-border) !important;
  color: var(--btn-primary-color) !important;
  font-family: var(--font-body);
  border-radius: 10px;
}

.btn-success:hover, .btn-success:focus,
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--btn-primary-hover) !important;
  border-color: var(--btn-primary-border) !important;
  color: var(--btn-primary-color) !important;
}

body {
    background-color: var(--bg-page-alt);
    font-family: var(--font-body);
    color: var(--text-body);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#flash-toast-wrapper {
  width: 100%;
  z-index: 2000;
  padding: 0;
  pointer-events: none;
}

.flash-toast {
  position: relative;
  width: 100%;
  background: var(--accent);
  color: var(--accent-text);
  padding: 14px 50px 14px 20px;
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
  box-shadow: 0 8px 25px var(--shadow-md);
  pointer-events: auto;
}

/* Close button */
.flash-close {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 20px;
  font-weight: bold;
  color: var(--accent-text);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.flash-close:hover {
  opacity: 0.6;
}

/* ----------------------------
   TOGGLE PILLS (matches sidebar)
----------------------------- */
.sidebar-toggle-pill {
    display: inline-flex;
    align-items: center;
    background: var(--bg-surface-inset);
    border-radius: 20px;
    padding: 2px;
    border: 1px solid var(--border-subtle);
    cursor: pointer;
}

.sidebar-toggle-opt {
    width: 2rem;
    padding: 3px 0;
    border-radius: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    line-height: 1.5;
    text-align: center;
}

.sidebar-toggle-opt.active {
    background: var(--bg-surface);
    color: var(--text-primary);
    pointer-events: none;
    box-shadow: 0 1px 2px var(--shadow-md);
}

/* Light mode: auth pages use the soft green button, not the dark primary */
[data-bs-theme="light"] .btn-success,
[data-bs-theme="light"] .btn-primary {
  background-color: var(--accent-icon-bg) !important;
  border-color: var(--accent) !important;
  color: var(--accent-text) !important;
}

[data-bs-theme="light"] .btn-success:hover,
[data-bs-theme="light"] .btn-success:focus,
[data-bs-theme="light"] .btn-primary:hover,
[data-bs-theme="light"] .btn-primary:focus {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--accent-text) !important;
}

/* ----------------------------
   AUTH CARD (shared across login / MFA / forgot-password pages)
----------------------------- */
.auth-page-content {
    width: 100%;
    display: flex;
    justify-content: center;
}

.auth-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 5px;
    padding: 2.5rem;
    width: 402px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.auth-card h4,
.auth-card h5 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.auth-card > p,
.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.auth-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
}

.auth-logo {
    height: 36px;
    width: auto;
}
