/* MedMathMindset v301.0.17 — self-contained login layout.
   No Bootstrap utilities are required, so the page remains correctly configured
   even if the local Bootstrap bundle is missing, cached, or intentionally reduced. */
:root {
  color-scheme: dark;
  --mmm-login-bg-a: #031b1d;
  --mmm-login-bg-b: #07111f;
  --mmm-login-bg-c: #160b1d;
  --mmm-login-header: #04070b;
  --mmm-login-panel: #101a2e;
  --mmm-login-field: #071326;
  --mmm-login-border: rgba(140, 190, 255, .22);
  --mmm-login-text: #f2f8ff;
  --mmm-login-muted: #a9bdd3;
  --mmm-login-cyan: #31d8e8;
  --mmm-login-mint: #35ddb9;
  --mmm-login-pink: #ff4fbd;
}

html {
  box-sizing: border-box;
  min-width: 0;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: inherit; }

body.mmm-login-page {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 13% 12%, rgba(33, 223, 211, .15), transparent 31rem),
    linear-gradient(110deg, var(--mmm-login-bg-a) 0%, var(--mmm-login-bg-b) 50%, var(--mmm-login-bg-c) 100%);
  color: var(--mmm-login-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a { color: inherit; }

.mmm-login-skip {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: .7rem 1rem;
  border-radius: 10px;
  background: #fff;
  color: #07111f;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
}
.mmm-login-skip:focus { transform: translateY(0); }

.mmm-login-top {
  width: 100%;
  background: var(--mmm-login-header);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.mmm-login-top__inner {
  width: min(1160px, calc(100% - 36px));
  min-width: 0;
  margin: 0 auto;
  padding: 14px 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 24px;
}

.mmm-login-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--mmm-login-cyan);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.mmm-login-brand img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  object-fit: contain;
  display: block;
}

.mmm-login-links,
.mmm-login-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.mmm-login-links a {
  color: #dce9f9;
  font-size: .9rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.mmm-login-links a:hover,
.mmm-login-links a:focus-visible,
.mmm-login-brand:hover,
.mmm-login-brand:focus-visible {
  color: #70f5f3;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.mmm-login-actions { justify-content: flex-end; }

.mmm-login-role {
  color: var(--mmm-login-muted);
  font-size: .82rem;
  overflow-wrap: anywhere;
}

.mmm-login-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  max-width: 100%;
  padding: .6rem .9rem;
  border: 1px solid rgba(214, 234, 255, .35);
  border-radius: 13px;
  background: rgba(10, 20, 36, .72);
  color: #edf7ff;
  font-size: .9rem;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.mmm-login-action--primary {
  border-color: transparent;
  background: linear-gradient(90deg, var(--mmm-login-cyan), var(--mmm-login-mint));
  color: #031016;
}

.mmm-login-action--logout {
  border-color: transparent;
  background: var(--mmm-login-pink);
  color: #190018;
}

.mmm-login-action:hover,
.mmm-login-action:focus-visible { filter: brightness(1.08); }

.mmm-login-shell {
  width: min(1160px, calc(100% - 36px));
  min-width: 0;
  margin: 0 auto;
  padding: clamp(38px, 8vh, 86px) 0 64px;
  display: grid;
  place-items: start center;
}

.mmm-login-card {
  width: min(100%, 520px);
  min-width: 0;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17, 29, 52, .98), rgba(13, 25, 46, .98));
  border: 1px solid var(--mmm-login-border);
  border-radius: 20px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .34);
}

.mmm-login-kicker {
  margin: 0 0 .45rem;
  color: #8fc6e2;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mmm-login-title {
  max-width: 100%;
  margin: 0;
  color: #f7fbff;
  font-size: clamp(2rem, 5vw, 2.55rem);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.mmm-login-intro {
  margin: .7rem 0 1.4rem;
  color: #b8cbe0;
  font-size: .96rem;
  line-height: 1.5;
}

.mmm-login-form {
  min-width: 0;
  display: grid;
  gap: 1rem;
}

.mmm-login-field { min-width: 0; }

.mmm-login-label {
  display: block;
  max-width: 100%;
  margin: 0 0 .45rem;
  color: #f2f8ff;
  font-size: .98rem;
  font-weight: 800;
  line-height: 1.3;
}

.mmm-login-input {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 54px;
  margin: 0;
  padding: .82rem 1rem;
  border: 1px solid rgba(160, 210, 255, .24);
  border-radius: 15px;
  outline: 0;
  background: var(--mmm-login-field);
  color: #fff;
  font: inherit;
  line-height: 1.35;
  appearance: none;
}

.mmm-login-input:hover { border-color: rgba(160, 210, 255, .42); }

.mmm-login-input:focus {
  border-color: var(--mmm-login-cyan);
  background: #09182d;
  box-shadow: 0 0 0 .22rem rgba(49, 216, 232, .18);
}

.mmm-login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 52px;
  margin: .1rem 0 0;
  padding: .82rem 1.25rem;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--mmm-login-cyan), var(--mmm-login-mint));
  color: #031016;
  font: inherit;
  font-weight: 900;
  line-height: 1.1;
  cursor: pointer;
}

.mmm-login-submit:hover,
.mmm-login-submit:focus-visible { filter: brightness(1.08); }

.mmm-login-help {
  margin: 0;
  color: var(--mmm-login-muted);
  font-size: .93rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.mmm-login-help a {
  color: #4ce4ed;
  font-weight: 750;
  text-underline-offset: .18em;
}

.mmm-login-alert {
  max-width: 100%;
  margin: 0 0 1rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.mmm-login-alert--info {
  border-color: rgba(85, 208, 238, .42);
  background: rgba(24, 99, 126, .24);
  color: #e5faff;
}

.mmm-login-alert--error {
  border-color: rgba(255, 111, 147, .5);
  background: rgba(121, 28, 59, .3);
  color: #ffe8f0;
}

.mmm-login-alert--warning {
  border-color: rgba(255, 207, 90, .5);
  background: rgba(105, 75, 13, .3);
  color: #fff7d8;
}

.mmm-login-alert code { color: #fff; }

.mmm-login-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 760px) {
  .mmm-login-top__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
  }
  .mmm-login-links {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 8px 18px;
  }
  .mmm-login-actions {
    grid-column: 2;
    grid-row: 1;
    flex-wrap: nowrap;
  }
  .mmm-login-role { display: none; }
  .mmm-login-shell { padding-top: 34px; }
}

@media (max-width: 500px) {
  .mmm-login-top__inner,
  .mmm-login-shell { width: min(100% - 20px, 1160px); }
  .mmm-login-top__inner { padding: 11px 0; }
  .mmm-login-brand { font-size: 1.02rem; }
  .mmm-login-brand img { width: 34px; height: 34px; flex-basis: 34px; }
  .mmm-login-links { gap: 6px 15px; }
  .mmm-login-links a { font-size: .87rem; }
  .mmm-login-action { min-height: 40px; padding: .55rem .72rem; font-size: .86rem; }
  .mmm-login-shell { padding-top: 24px; padding-bottom: 40px; }
  .mmm-login-card { padding: 24px 18px; border-radius: 17px; }
  .mmm-login-title { font-size: clamp(1.9rem, 9vw, 2.25rem); }
  .mmm-login-intro { font-size: .92rem; }
  .mmm-login-submit { width: 100%; }
  .mmm-login-help { text-align: center; }
}

@media (max-width: 345px) {
  .mmm-login-top__inner { grid-template-columns: 1fr; }
  .mmm-login-actions,
  .mmm-login-links { grid-column: 1; grid-row: auto; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
