/* Dashboard + auth — matches e-learn theme accents */
/* This stylesheet is only included on dashboard pages. */
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.dashboard-body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  background: #f4f6f8;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* main.css .btn-primary is hero-sized (50px line-height, huge padding); restore normal control sizing in dashboard */
body.dashboard-body .dashboard-content .btn-primary {
  line-height: 1.42857143;
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  padding: 6px 12px;
  border-bottom-width: 1px;
}

body.dashboard-body .dashboard-content .btn-primary.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.5;
}

body.dashboard-body .dashboard-content .btn-primary.btn-xs {
  padding: 1px 8px;
  font-size: 12px;
  line-height: 1.5;
}

.dashboard-frame {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  align-items: stretch;
}

.dashboard-sidebar {
  flex: 0 0 260px;
  width: 260px;
  max-width: 100%;
  box-sizing: border-box;
  background: #222;
  color: #ddd;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

.dashboard-brand a {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  display: block;
  padding: 0 20px 12px;
}

.dashboard-brand .img-circle {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  background: #e66b1f;
  color: #fff;
  border-radius: 50%;
  margin-right: 8px;
}

.dashboard-role-pill {
  display: inline-block;
  margin-left: 20px;
  margin-bottom: 16px;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(230, 107, 31, 0.25);
  color: #ffb380;
}

.dashboard-nav-link {
  display: block;
  padding: 10px 20px;
  color: #ccc;
  border-left: 3px solid transparent;
}

.dashboard-nav-link:hover,
.dashboard-nav-link:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.dashboard-nav-link.active {
  color: #fff;
  background: rgba(230, 107, 31, 0.15);
  border-left-color: #e66b1f;
}

.dashboard-sidebar-foot {
  margin-top: auto;
  padding: 16px 20px 0;
}

.dashboard-main {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.dashboard-topbar {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-bottom: 1px solid #e2e6ea;
  padding: 18px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 20px;
}

.dashboard-topbar h1 {
  margin: 0;
  font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2rem);
  line-height: 1.2;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
}

.dashboard-user {
  text-align: right;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #1e293b;
  font-weight: 500;
}

.dashboard-user small {
  display: block;
  color: #64748b;
  font-weight: 400;
  font-size: 0.82rem;
  margin-top: 2px;
}

.dashboard-content {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 24px 24px 40px;
}

/* Theme (main.css + skins/default.css) sets `a { color: #f5d76e }` — unreadable on light UI.
   Use !important so we always win over comma-grouped theme selectors. */
body.dashboard-body .dashboard-content a:not(.btn):not(.dashboard-nav-link),
body.dashboard-body .dashboard-content a:not(.btn):not(.dashboard-nav-link):link,
body.dashboard-body .dashboard-content a:not(.btn):not(.dashboard-nav-link):visited {
  color: #185aab !important;
}
body.dashboard-body .dashboard-content a:not(.btn):not(.dashboard-nav-link):hover,
body.dashboard-body .dashboard-content a:not(.btn):not(.dashboard-nav-link):focus,
body.dashboard-body .dashboard-content a:not(.btn):not(.dashboard-nav-link):active {
  color: #0f3d73 !important;
  text-decoration: underline !important;
}

/* Explicit utility for inline text links (optional; same colors). */
.dashboard-inline-link,
.dashboard-inline-link:link,
.dashboard-inline-link:visited {
  color: #185aab !important;
}
.dashboard-inline-link:hover,
.dashboard-inline-link:focus,
.dashboard-inline-link:active {
  color: #0f3d73 !important;
  text-decoration: underline !important;
}

/* learn.php, course.php, catalog — same theme yellow links; no .dashboard-content wrapper */
body.lms-light-ui a:not(.btn):not(.dashboard-nav-link),
body.lms-light-ui a:not(.btn):not(.dashboard-nav-link):link,
body.lms-light-ui a:not(.btn):not(.dashboard-nav-link):visited {
  color: #185aab !important;
}
body.lms-light-ui a:not(.btn):not(.dashboard-nav-link):hover,
body.lms-light-ui a:not(.btn):not(.dashboard-nav-link):focus,
body.lms-light-ui a:not(.btn):not(.dashboard-nav-link):active {
  color: #0f3d73 !important;
  text-decoration: underline !important;
}

.dashboard-tiles {
  display: grid;
  /* auto-fit: stretch cards across the row. auto-fill leaves empty columns and a huge right gutter. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.dashboard-tile {
  background: #fff;
  border: 1px solid #e2e6ea;
  border-radius: 4px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.dashboard-tile h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Content pages that need a normal sentence-case title (not tile metrics) */
.dashboard-tile.dashboard-tile--plain h3 {
  text-transform: none;
  letter-spacing: normal;
  font-size: 20px;
  color: #1a1f2e;
  font-weight: 600;
  margin-bottom: 6px;
}

/* Tutor lesson quiz — 2-column question grid + add form */
.dashboard-body .lesson-quiz-page .lesson-quiz-lead {
  margin-bottom: 16px;
}
.dashboard-body .lesson-quiz-page .lesson-quiz-questions-grid {
  margin-bottom: 8px;
}
.dashboard-body .lesson-quiz-page .lesson-quiz-questions-grid > [class*='col-'] {
  margin-bottom: 16px;
}
.dashboard-body .lesson-quiz-page .lesson-quiz-question-card {
  margin-bottom: 0;
  height: 100%;
}
.dashboard-body .lesson-quiz-page .lesson-quiz-question-card .panel-body {
  padding: 14px 16px;
}
.dashboard-body .lesson-quiz-page .lesson-quiz-question-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.dashboard-body .lesson-quiz-page .lesson-quiz-question-head strong {
  font-size: 15px;
  line-height: 1.45;
  flex: 1;
  min-width: 0;
}
.dashboard-body .lesson-quiz-page .lesson-quiz-add-panel {
  max-width: none;
  margin-top: 8px;
  clear: both;
}
.dashboard-body .lesson-quiz-page .lesson-quiz-add-panel .panel-heading {
  font-size: 14px;
  padding: 10px 15px;
}
.dashboard-body .lesson-quiz-page .lesson-quiz-add-panel .panel-body {
  padding-top: 16px;
}

/* Student learn.php — quiz block (card options + grid) */
.dashboard-body .learn-lesson-quiz {
  border-color: #dce3ea;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(26, 31, 46, 0.08);
}
.dashboard-body .learn-lesson-quiz > .panel-heading {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border-bottom: 1px solid #dce3ea;
  padding: 14px 20px;
}
.dashboard-body .learn-lesson-quiz-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a202c;
  letter-spacing: -0.02em;
  text-transform: none;
}
.dashboard-body .learn-lesson-quiz .panel-body {
  padding: 22px 24px 24px;
}
.dashboard-body .learn-lesson-quiz-question {
  margin-bottom: 0;
}
.dashboard-body .learn-lesson-quiz-question + .learn-lesson-quiz-question {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #e8edf2;
}
.dashboard-body .learn-lesson-quiz-prompt {
  font-size: 16px;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 16px;
  line-height: 1.5;
  padding: 0 2px;
}
.dashboard-body .learn-lesson-quiz-num {
  color: #718096;
  font-weight: 600;
  margin-right: 4px;
}
.dashboard-body .learn-lesson-quiz-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  max-width: 680px;
  padding: 2px 0 0;
}
@media (max-width: 540px) {
  .dashboard-body .learn-lesson-quiz-options-grid {
    grid-template-columns: 1fr;
  }
}
.dashboard-body .learn-lesson-quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #d8dee6;
  border-radius: 8px;
  background: #fafbfc;
  cursor: pointer;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.45;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.dashboard-body .learn-lesson-quiz-option:hover {
  border-color: #a0aec0;
  background: #fff;
}
.dashboard-body .learn-lesson-quiz-option:focus-within {
  border-color: #2f4e71;
  box-shadow: 0 0 0 2px rgba(47, 78, 113, 0.2);
  background: #fff;
}
.dashboard-body .learn-lesson-quiz-option input {
  flex-shrink: 0;
  margin: 3px 0 0;
  width: 16px;
  height: 16px;
}
.dashboard-body .learn-lesson-quiz-option-text {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.dashboard-body .learn-lesson-quiz-option:has(input:checked) {
  border-color: #2f4e71;
  background: #f0f4f8;
  box-shadow: inset 0 0 0 1px rgba(47, 78, 113, 0.25);
}
.dashboard-body .learn-lesson-quiz-actions {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e8edf2;
  text-align: right;
}
.dashboard-body .learn-lesson-quiz-actions .btn-primary {
  min-width: 160px;
  padding: 8px 20px;
}
@media (max-width: 767px) {
  .dashboard-body .learn-lesson-quiz .panel-heading .pull-right {
    float: none !important;
    display: block;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
  .dashboard-body .learn-lesson-quiz-actions {
    text-align: center;
  }
  .dashboard-body .learn-lesson-quiz-actions .btn-primary {
    width: 100%;
    max-width: 320px;
  }
}

/* learn.php section titles — override .dashboard-tile h3 uppercase */
.dashboard-tile h3.learn-section-title {
  text-transform: none;
  letter-spacing: normal;
  font-size: 17px;
  color: #1a1f2e;
  font-weight: 700;
}

/* Lesson material — inline image must stay visible (not collapsed / clipped) */
.dashboard-body .learn-lesson-material-image-wrap {
  display: block;
  margin: 0 0 12px;
  line-height: 0;
}
.dashboard-body .learn-lesson-material-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid #e2e6ea;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(26, 31, 46, 0.08);
  vertical-align: top;
}

.dashboard-tile .metric {
  font-size: 28px;
  font-weight: 700;
  color: #222;
}

/* —— Home dashboard: topbar, hero, stat tiles (student / tutor / admin) */
.dashboard-topbar-titles {
  flex: 1 1 240px;
  min-width: 0;
}

.dashboard-topbar-titles h1 {
  margin: 0;
  line-height: 1.2;
}

.dashboard-page-subtitle {
  margin: 8px 0 0 0;
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.05rem);
  color: #475569;
  font-weight: 400;
  line-height: 1.5;
  max-width: 65ch;
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-bottom: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f0f3f4 0%, #fff 55%, #f0f2f2 100%);
  border: 1px solid #d8dee3;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Lead block uses remaining width so a second column (e.g. admin actions) sits flush right, no empty flex gap */
.dashboard-hero > div:first-of-type {
  flex: 1 1 300px;
  min-width: 0;
  max-width: 100%;
}

.dashboard-hero h2 {
  margin: 0 0 6px 0;
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  line-height: 1.3;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
}

.dashboard-hero p {
  margin: 0 0 8px 0;
  color: #3d4956;
  line-height: 1.5;
  max-width: 100%;
}

.dashboard-hero .dashboard-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.dashboard-hero-cta--trailing {
  margin-left: 0;
  flex: 0 0 auto;
  align-self: center;
  justify-content: flex-end;
}

.role-student .dashboard-hero {
  background: linear-gradient(135deg, #e8f4fc 0%, #fff 50%, #eff6fc 100%);
  border-color: #c0d4e0;
}

.role-tutor .dashboard-hero {
  background: linear-gradient(135deg, #ecf8f0 0%, #fff 55%, #eef5f0 100%);
  border-color: #c5ddd0;
}

.role-company .dashboard-hero,
.role-admin .dashboard-hero {
  background: linear-gradient(135deg, #edeef0 0%, #fff 55%, #e8e9ed 100%);
  border-color: #cbd0d6;
}

.dashboard-section {
  width: 100%;
  min-width: 0;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.dashboard-section h3,
.dashboard-section-label {
  margin: 0 0 14px 0;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #475569;
  font-weight: 700;
}

.dashboard-tiles--stats .dashboard-tile--stat,
.dashboard-tile--stat {
  display: block;
  border-left: 3px solid #0d6e9e;
  padding: 1rem 1.1rem;
}

.role-tutor .dashboard-tile--stat {
  border-left-color: #0d8e50;
}

.role-student .dashboard-tile--stat,
.role-company .dashboard-tile--stat,
.role-admin .dashboard-tile--stat {
  border-left-color: #0d6e9e;
}

.dashboard-tile--stat .fa {
  opacity: 0.85;
  margin-right: 6px;
  color: #0d6e9e;
}

body.role-tutor .dashboard-tile--stat .fa {
  color: #0d7a44;
}

.dashboard-tile--stat p {
  margin: 0 0 0.2rem 0;
}

/* Wider “Get started” — auto-fit so three cards grow to full row width */
.dashboard-tiles--action {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 18px;
}

.dashboard-tile--action {
  text-decoration: none;
  color: #222;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s;
  padding: 24px 22px 22px;
  border-radius: 8px;
}

.dashboard-tile--action h3 {
  font-size: 1.05rem; /* ~17px — overrides default .dashboard-tile h3 */
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a2540;
  margin: 0 0 10px 0;
}

.dashboard-tile--action h3 .fa {
  font-size: 1.15em;
  width: 1.35em;
  margin-right: 8px;
  text-align: center;
  vertical-align: -0.1em;
  color: #185aab;
  opacity: 0.95;
}

.role-tutor .dashboard-tile--action h3 .fa {
  color: #0d7a44;
}

.dashboard-tile--action p {
  font-size: 0.95rem; /* 15px at 16px root */
  line-height: 1.5;
  color: #3d4a5c;
  margin: 0 0 14px 0;
}

.dashboard-tile--action .dashboard-tile-cta {
  display: inline-block;
  font-size: 0.9375rem; /* 15px */
  font-weight: 600;
  line-height: 1.3;
  padding: 0;
  margin: 0;
  border: 0;
  color: #185aab !important;
  background: none;
  box-shadow: none;
  cursor: pointer;
  text-align: left;
  vertical-align: baseline;
}

.dashboard-tile--action .dashboard-tile-cta .fa {
  font-size: 0.7em;
  margin-left: 3px;
  margin-right: 0;
  color: #185aab;
  opacity: 0.9;
  vertical-align: 0.05em;
  width: auto;
}

.role-tutor .dashboard-tile--action .dashboard-tile-cta,
.role-tutor .dashboard-tile--action .dashboard-tile-cta .fa {
  color: #0d5c36 !important;
}

.dashboard-tile--action:hover,
.dashboard-tile--action:focus {
  text-decoration: none;
  color: #222;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
  border-color: #0d6e9e;
}

.role-tutor .dashboard-tile--action:hover,
.role-tutor .dashboard-tile--action:focus {
  border-color: #0d8e50;
}

.admin-quicklinks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px 0;
}

.admin-quicklinks a.btn {
  margin: 0;
  border-radius: 6px;
}

body.role-admin .dashboard-hero-cta a.btn,
body.role-tutor .dashboard-hero-cta a.btn,
body.role-student .dashboard-hero-cta a.btn {
  border-radius: 6px;
}

/* Dashboard forms — submit loading state */
.dashboard-body .btn.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: wait;
  pointer-events: none;
  opacity: 0.92;
}

.dashboard-body .btn-block.is-loading {
  display: flex;
  width: 100%;
}

.dashboard-body .dash-btn-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-top-color: #333;
  border-radius: 50%;
  animation: dash-spin 0.7s linear infinite;
  flex-shrink: 0;
}

.dashboard-body .btn-primary .dash-btn-spinner,
.dashboard-body .btn-primary.is-loading .dash-btn-spinner {
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
}

.dashboard-body .btn-default .dash-btn-spinner,
.dashboard-body .btn-default.is-loading .dash-btn-spinner {
  border-color: rgba(230, 107, 31, 0.35);
  border-top-color: #e66b1f;
}

.dashboard-body .btn-link .dash-btn-spinner,
.dashboard-body .btn-link.is-loading .dash-btn-spinner {
  width: 0.85em;
  height: 0.85em;
  border-color: rgba(230, 107, 31, 0.35);
  border-top-color: #e66b1f;
}

.dashboard-body .dash-btn-loading-text {
  line-height: 1.2;
}

/* Full-form loading overlay (forms with data-loading-overlay) */
.dashboard-body form.dash-loadable.dash-form-loading {
  position: relative;
  pointer-events: none;
}
.dashboard-body form.dash-loadable.dash-form-loading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  background: rgba(255, 255, 255, 0.88);
  pointer-events: none;
}
.dashboard-body form.dash-loadable.dash-form-loading::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border: 2px solid rgba(47, 78, 113, 0.2);
  border-top-color: #2f4e71;
  border-radius: 50%;
  animation: dash-spin 0.7s linear infinite;
  z-index: 5;
  pointer-events: none;
}

@keyframes dash-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Summernote (tutor profile) */
.dashboard-content .note-editor.note-frame {
  border-color: #ccc;
  border-radius: 4px;
}
.dashboard-content .note-toolbar {
  border-bottom-color: #ddd;
  background: #fafafa;
}
.dashboard-content .note-status-output {
  display: none;
}

/* Auth pages — landing panel theme (gold panel #f6d66b · navy #2e4765, white fields) */
.auth-body {
  --auth-panel-gold: #f6d66b;
  --auth-panel-gold-deep: #e8c94d;
  --auth-panel-gold-soft: rgba(246, 214, 107, 0.4);
  --auth-panel-navy: #2e4765;
  --auth-panel-navy-hover: #243a52;
  --auth-field-white: #ffffff;
  margin: 0;
  min-height: 100vh;
  position: relative;
  background: #0f1419;
  background-image:
    radial-gradient(ellipse 120% 80% at 20% -20%, var(--auth-panel-gold-soft), transparent 50%),
    radial-gradient(ellipse 90% 70% at 100% 50%, rgba(68, 107, 151, 0.14), transparent 45%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(246, 214, 107, 0.14), transparent 40%),
    linear-gradient(165deg, #1a1f2e 0%, #141821 45%, #0d1017 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

.auth-scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}

.auth-orb--1 {
  width: 420px;
  height: 420px;
  background: #f6d66b;
  top: -120px;
  right: -80px;
}

.auth-orb--2 {
  width: 320px;
  height: 320px;
  background: #f5d76e;
  bottom: -80px;
  left: -100px;
  opacity: 0.35;
}

.auth-orb--3 {
  width: 200px;
  height: 200px;
  background: #446b97;
  top: 40%;
  left: 15%;
  opacity: 0.22;
}

.auth-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
}

.auth-card-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  padding: 32px 24px 40px;
}

/* !important: win over Bootstrap .panel / .panel-default white background when cache served old CSS */
.auth-body .auth-card.panel.panel-default {
  position: relative;
  border: 1px solid rgba(46, 71, 101, 0.15) !important;
  border-radius: 12px;
  background-color: #f6d66b !important;
  background: #f6d66b !important;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.12),
    0 24px 48px rgba(0, 0, 0, 0.28) !important;
  overflow: hidden;
}

.auth-body .auth-card .panel-heading,
.auth-body .auth-card .panel-body {
  background-color: transparent !important;
  background: transparent !important;
}

.auth-card-accent {
  height: 6px;
  background: var(--auth-panel-navy);
}

.auth-card-head.panel-heading {
  background: transparent;
  border-bottom: none;
  padding: 28px 40px 8px;
}

.auth-card-inner.panel-body {
  padding: 4px 40px 36px;
}

/* Scoped to beat skins/default.css global `a { color: … }` on auth + portal */
.auth-brand {
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #2e4765 !important;
  text-decoration: none !important;
  letter-spacing: -0.02em;
}

.auth-brand:hover,
.auth-brand:focus {
  color: #243a52 !important;
  text-decoration: none !important;
}

.auth-brand .img-circle {
  display: inline-block;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  background: #ffffff !important;
  color: #2e4765 !important;
  border-radius: 50%;
  margin-right: 10px;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(46, 71, 101, 0.15);
}

.auth-tagline {
  margin: 12px 0 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--auth-panel-navy);
  opacity: 0.85;
}

.auth-body .panel-heading {
  border-radius: 0;
}

.auth-body .auth-title {
  margin: 8px 0 20px;
  font-family: Montserrat, "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--auth-panel-navy);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
}

.auth-body .auth-hint {
  font-size: 13px;
  color: var(--auth-panel-navy);
  line-height: 1.5;
  margin: 0 0 22px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  border: 1px solid rgba(46, 71, 101, 0.12);
  border-left: 4px solid var(--auth-panel-navy);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.auth-body .form-group {
  margin-bottom: 18px;
}

.auth-body .form-group label {
  font-weight: 700;
  font-size: 13px;
  color: var(--auth-panel-navy);
  margin-bottom: 8px;
}

.auth-body .form-control {
  background: var(--auth-field-white);
  border: 1px solid rgba(46, 71, 101, 0.18);
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(46, 71, 101, 0.06);
  height: 48px;
  padding-left: 14px;
  padding-right: 14px;
  font-size: 15px;
  color: var(--auth-panel-navy);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-body .form-control::placeholder {
  color: rgba(46, 71, 101, 0.45);
}

.auth-body .form-control:focus {
  border-color: var(--auth-panel-navy);
  box-shadow: 0 0 0 3px rgba(46, 71, 101, 0.2);
}

.auth-body select.form-control {
  height: 48px;
}

.auth-body .btn-primary {
  /* main.css .btn-primary sets line-height: 50px — must reset or the button looks huge */
  line-height: 1.35 !important;
  color: #fff !important;
  background-color: #2e4765 !important;
  background: #2e4765 !important;
  border: 1px solid #243a52 !important;
  border-bottom-width: 1px !important;
  font-family: Montserrat, "Open Sans", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 14px;
  padding: 12px 16px !important;
  margin-top: 8px;
  border-radius: 10px !important;
  box-shadow: 0 2px 10px rgba(46, 71, 101, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  display: block;
  width: 100%;
}

.auth-body .btn-primary:hover,
.auth-body .btn-primary:focus {
  color: #fff !important;
  background: #243a52 !important;
  background-color: #243a52 !important;
  border-color: #1a2a3c !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(46, 71, 101, 0.45);
}

.auth-body .btn-primary.is-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transform: none;
  cursor: wait;
  opacity: 0.95;
}

.auth-body .btn-primary.is-loading:hover,
.auth-body .btn-primary.is-loading:focus {
  transform: none;
}

.auth-btn-spinner {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin 0.7s linear infinite;
  flex-shrink: 0;
}

.auth-btn-loading-text {
  line-height: 1.2;
}

@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-body a {
  color: #2e4765 !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-body a:hover,
.auth-body a:focus {
  color: #243a52 !important;
}

.auth-body .alert {
  border-radius: 10px;
  border: none;
  margin-bottom: 18px;
}

.auth-body .auth-links {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(46, 71, 101, 0.2);
  font-size: 14px;
}

.auth-body .auth-back-link {
  margin-top: 28px;
}

.auth-body .auth-back-link a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.auth-body .auth-back-link a:hover {
  color: #fff;
}

@media (max-width: 640px) {
  .auth-card-head.panel-heading {
    padding-left: 28px;
    padding-right: 28px;
  }

  .auth-card-inner.panel-body {
    padding-left: 28px;
    padding-right: 28px;
  }

  .auth-card-wrap {
    padding: 20px 16px 32px;
  }
}

@media (max-width: 767px) {
  .dashboard-frame {
    flex-direction: column;
  }
  .dashboard-sidebar {
    flex: 0 0 auto;
    width: 100%;
  }
  .dashboard-main {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
  }
  .dashboard-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .dashboard-user {
    text-align: left;
  }
  .dashboard-hero {
    flex-direction: column;
    align-items: stretch;
  }
  .dashboard-hero > div:first-of-type {
    flex-basis: auto;
  }
  .dashboard-hero-cta--trailing {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Table toolbars + row action columns (Edit / Delete / Export) */
.dashboard-table-toolbar {
  margin-bottom: 10px;
  min-height: 32px;
}
.table-toolbar-actions .btn + .btn {
  margin-left: 6px;
}
.table-col-actions {
  text-align: right;
  white-space: nowrap;
  vertical-align: middle !important;
}
.table-col-actions .btn {
  margin-left: 4px;
}
.table-col-actions .btn:first-child {
  margin-left: 0;
}
.table-col-actions form {
  display: inline-block;
  margin: 0 0 0 4px;
  vertical-align: middle;
}
