:root {
  --primary: #0f5ca8;
  --secondary: #0c3f73;
  --accent: #13a8a1;
  --primary-fg: #ffffff;
  --body-bg: #eef3f9;
  --body-fg: #17324d;
  --header-bg: linear-gradient(120deg, #082845 0%, #0d4f8f 62%, #0f7f9c 100%);
  --header-link-color: #ffffff;
  --breadcrumbs-bg: #dae6f5;
  --breadcrumbs-fg: #204468;
  --link-fg: #0d4f8f;
  --link-hover-color: #093964;
  --hairline-color: #c8d8ea;
  --border-color: #d0deed;
  --button-bg: #0f5ca8;
  --button-hover-bg: #0b467f;
  --default-button-bg: #0f5ca8;
  --default-button-hover-bg: #0b467f;
}

body {
  background: radial-gradient(1200px 420px at 10% -20%, #dce9f8 0, rgba(220, 233, 248, 0) 65%), var(--body-bg);
  color: var(--body-fg);
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, Arial, sans-serif;
}

a:link,
a:visited {
  color: var(--link-fg);
}

a:focus,
a:hover {
  color: var(--link-hover-color);
}

#header {
  background: var(--header-bg);
  box-shadow: 0 10px 25px rgba(6, 44, 81, 0.24);
}

#branding {
  float: none;
}

.lmg-branding {
  display: flex;
  align-items: center;
}

.lmg-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
}

.lmg-brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  padding: 4px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.96);
}

.lmg-brand-text {
  display: block;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.lmg-brand-subtitle {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  opacity: 0.9;
}

#user-tools {
  font-size: 12px;
}

#user-tools,
#user-tools a,
#user-tools button {
  color: #ffffff;
}

#user-tools a:link,
#user-tools a:visited {
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

div.breadcrumbs {
  background: var(--breadcrumbs-bg);
  color: var(--breadcrumbs-fg);
  border-bottom: 1px solid #c3d6ec;
}

div.breadcrumbs a {
  color: #0a3f74;
}

#content {
  padding-top: 20px;
}

#content-main,
.module,
#changelist-filter {
  border-radius: 14px;
}

.module,
#changelist-filter,
div.results {
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 22px rgba(25, 67, 109, 0.07);
}

.module h2,
.module caption,
.inline-group h2,
#changelist-filter h2 {
  background: linear-gradient(120deg, #e8f1fb 0%, #dceafb 100%);
  color: #173a61;
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid #c8d8ea;
}

.submit-row {
  border-radius: 12px;
}

.button,
input[type="submit"],
input[type="button"],
input[type="reset"],
a.button,
.submit-row input {
  border-radius: 10px;
}

input,
textarea,
select,
.vTextField {
  border-radius: 8px;
  border: 1px solid #b9cde2;
}

input:focus,
textarea:focus,
select:focus,
.vTextField:focus {
  border-color: #0f5ca8;
  box-shadow: 0 0 0 3px rgba(15, 92, 168, 0.18);
}

.selector .selector-available h2,
.selector .selector-chosen h2 {
  border-radius: 10px 10px 0 0;
}

table thead th {
  background: #eaf2fc;
  color: #21496f;
}

tr:nth-child(odd),
.row-form-errors {
  background: #fbfdff;
}

.paginator {
  background: #eef5ff;
  border: 1px solid #d4e1f0;
  border-radius: 12px;
}

.object-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.object-tools a,
.lmg-object-tool {
  border-radius: 999px !important;
  border: 1px solid #cfe0f2 !important;
  background: #ffffff !important;
  color: #0c4e8c !important;
  box-shadow: 0 8px 18px rgba(22, 55, 88, 0.08);
  padding: 10px 14px !important;
  font-weight: 700;
}

.object-tools a:hover,
.lmg-object-tool:hover {
  background: #eff6ff !important;
  color: #083a69 !important;
}

.lmg-object-tool-primary {
  background: linear-gradient(135deg, #0f5ca8 0%, #0e78a0 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

.lmg-object-tool-primary:hover {
  background: linear-gradient(135deg, #0b467f 0%, #0d698a 100%) !important;
  color: #ffffff !important;
}

#changelist-filter {
  position: sticky;
  top: 18px;
}

#nav-sidebar {
  overflow: hidden;
}

#nav-sidebar-inner {
  min-height: 100vh;
}

#nav-sidebar .h-0.grow.overflow-auto,
#nav-sidebar .simplebar-content-wrapper {
  min-height: 0;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

div.results tbody tr:hover {
  background: #f3f8ff;
}

.messagelist li,
ul.messagelist li {
  border-radius: 12px;
  border: 1px solid #cddff1;
  box-shadow: 0 10px 22px rgba(25, 67, 109, 0.06);
}

/* Dashboard */
.lmg-admin-home {
  display: grid;
  gap: 24px;
}

.lmg-admin-hero {
  border-radius: 16px;
  border: 1px solid #b9d4eb;
  background: linear-gradient(140deg, #0a3259 0%, #0d538f 58%, #0a7d92 100%);
  padding: 22px;
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(10, 51, 90, 0.28);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 18px;
}

.lmg-admin-hero-copy {
  display: grid;
  gap: 14px;
  align-content: start;
}

.lmg-admin-eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.9;
}

.lmg-admin-hero h1 {
  margin: 8px 0;
  font-size: 34px;
  line-height: 1.08;
}

.lmg-admin-hero p {
  margin: 0;
  opacity: 0.95;
  max-width: 680px;
  line-height: 1.7;
}

.lmg-admin-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lmg-admin-hero-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 700;
}

.lmg-admin-hero-actions {
  display: grid;
  gap: 10px;
  align-content: center;
}

.lmg-admin-hero-actions .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.lmg-admin-hero-actions .button.default {
  border-color: #ffffff;
  background: #ffffff;
  color: #0d4f8f;
}

.lmg-dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.lmg-metric-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #d1dfef;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 24px rgba(26, 63, 98, 0.08);
}

.lmg-metric-card::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0f5ca8 0%, #13a8a1 100%);
}

.lmg-metric-label,
.lmg-panel-kicker,
.lmg-app-card-kicker {
  margin: 0;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5d7b97;
  font-weight: 700;
}

.lmg-metric-value {
  margin: 10px 0 4px;
  font-size: 32px;
  line-height: 1;
  color: #113555;
  font-weight: 800;
}

.lmg-metric-hint {
  margin: 0;
  color: #516f8d;
  line-height: 1.5;
}

.lmg-metric-teal::after {
  background: linear-gradient(90deg, #10958f 0%, #14b8a6 100%);
}

.lmg-metric-blue::after {
  background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 100%);
}

.lmg-metric-amber::after {
  background: linear-gradient(90deg, #d97706 0%, #f59e0b 100%);
}

.lmg-metric-emerald::after {
  background: linear-gradient(90deg, #059669 0%, #10b981 100%);
}

.lmg-metric-sky::after {
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
}

.lmg-metric-rose::after {
  background: linear-gradient(90deg, #e11d48 0%, #fb7185 100%);
}

.lmg-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  gap: 18px;
}

.lmg-dashboard-panel,
.lmg-admin-card {
  background: #ffffff;
  border: 1px solid #d4e2f0;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(26, 63, 98, 0.08);
  padding: 20px;
}

.lmg-panel-head,
.lmg-admin-header,
.lmg-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.lmg-panel-head h2,
.lmg-admin-header h1,
.lmg-admin-card h2,
.lmg-section-head h2 {
  margin: 6px 0 0;
  color: #123755;
}

.lmg-inline-link {
  color: #0f5ca8;
  text-decoration: none;
  font-weight: 700;
}

.lmg-inline-link:hover {
  color: #093964;
}

.lmg-quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.lmg-quick-action {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  text-decoration: none;
  border: 1px solid #d6e4f2;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: #17324d;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.lmg-quick-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(18, 56, 93, 0.12);
  border-color: #b7d0ea;
}

.lmg-quick-action strong {
  font-size: 16px;
}

.lmg-quick-action span {
  line-height: 1.6;
  color: #58748f;
}

.lmg-quick-action em {
  font-style: normal;
  font-weight: 700;
  color: #0f5ca8;
}

.lmg-quick-action-primary {
  background: linear-gradient(145deg, #0a3157 0%, #0d588f 62%, #0f7f9c 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.lmg-quick-action-primary span,
.lmg-quick-action-primary em {
  color: rgba(255, 255, 255, 0.92);
}

.lmg-mini-stats,
.lmg-help-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.lmg-mini-stats li,
.lmg-help-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f7fbff;
  border: 1px solid #dce8f4;
  color: #284866;
  line-height: 1.5;
}

.lmg-mini-stats li strong {
  color: #123755;
}

.lmg-data-list,
.lmg-compact-list {
  display: grid;
  gap: 12px;
}

.lmg-data-row,
.lmg-compact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #d8e4f0;
  background: #fbfdff;
  text-decoration: none;
  color: #183955;
}

.lmg-data-row:hover,
.lmg-compact-row:hover {
  background: #f3f8ff;
}

.lmg-data-row strong,
.lmg-compact-row strong {
  display: block;
  font-size: 15px;
}

.lmg-data-row span,
.lmg-compact-row span {
  color: #597690;
  line-height: 1.5;
}

.lmg-data-row-meta {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 132px;
}

.lmg-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.lmg-status-draft {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.lmg-status-sending {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.lmg-status-sent,
.lmg-status-success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.lmg-status-failed,
.lmg-status-error {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.lmg-status-pending {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}

.lmg-empty-state {
  margin: 0;
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed #cdddee;
  background: #f9fbfe;
  color: #597690;
}

.lmg-admin-section h2 {
  margin: 0;
  color: #1a4168;
}

.lmg-section-head p {
  margin: 0;
  color: #617c96;
  line-height: 1.6;
  max-width: 440px;
}

.lmg-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.lmg-app-card {
  border-radius: 14px;
  border: 1px solid #d2e0ef;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(30, 64, 98, 0.08);
  overflow: hidden;
}

.lmg-app-card.current-app {
  border-color: #9ec1e4;
}

.lmg-app-card-head {
  background: linear-gradient(120deg, #eff6ff 0%, #e3effc 100%);
  border-bottom: 1px solid #d1dfef;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lmg-app-card-head h3 {
  margin: 6px 0 0;
  font-size: 16px;
}

.lmg-app-card-head h3 a {
  text-decoration: none;
}

.lmg-count-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #c9dbed;
  font-size: 12px;
  color: #375a7a;
  font-weight: 700;
}

.lmg-model-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.lmg-model-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #edf2f8;
}

.lmg-model-list li:last-child {
  border-bottom: 0;
}

.lmg-model-list li.current-model {
  background: #f3f8ff;
}

.lmg-model-title {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  font-weight: 700;
  color: #1d425f;
}

.lmg-model-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lmg-model-actions a {
  font-size: 12px;
  border: 1px solid #c7dbef;
  border-radius: 999px;
  padding: 2px 8px;
  text-decoration: none;
  color: #0a4a89;
  background: #f5faff;
}

#nav-sidebar .lmg-sidebar-app-list {
  display: grid;
  gap: 12px;
  padding: 14px;
}

#nav-sidebar .lmg-sidebar-group {
  border: 1px solid #d9e6f3;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

#nav-sidebar .lmg-sidebar-group.current-app {
  border-color: #aac8e7;
  box-shadow: 0 10px 18px rgba(16, 63, 107, 0.08);
}

#nav-sidebar .lmg-sidebar-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(120deg, #eff6ff 0%, #e7f1fd 100%);
  border-bottom: 1px solid #d8e4f0;
}

#nav-sidebar .lmg-sidebar-group-head h3 {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

#nav-sidebar .lmg-sidebar-group-head a {
  color: #163a5a;
  text-decoration: none;
}

#nav-sidebar .lmg-sidebar-model-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

#nav-sidebar .lmg-sidebar-model-list li.current-model {
  background: #f3f8ff;
}

#nav-sidebar .lmg-sidebar-model-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 0 10px;
}

#nav-sidebar .lmg-sidebar-link,
#nav-sidebar .lmg-sidebar-link.is-disabled {
  display: block;
  padding: 10px 4px;
  color: #24496c;
  text-decoration: none;
  line-height: 1.5;
}

#nav-sidebar .lmg-sidebar-link:hover {
  color: #0c4e8c;
}

#nav-sidebar .lmg-sidebar-link.is-disabled {
  color: #6d87a0;
}

#nav-sidebar .lmg-sidebar-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #cfe0f2;
  background: #f5faff;
  color: #0a4a89;
  text-decoration: none;
  font-weight: 700;
}

#nav-sidebar .lmg-sidebar-action:hover {
  background: #e8f2ff;
  color: #083a69;
}

#nav-sidebar .lmg-sidebar-model-list li + li .lmg-sidebar-model-row {
  border-top: 1px solid #eef4f9;
}

.lmg-admin-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 20px;
  align-items: start;
}

.lmg-admin-header {
  margin-bottom: 18px;
}

.lmg-admin-header h1 {
  font-size: 30px;
  line-height: 1.1;
}

.lmg-admin-lead {
  margin: 10px 0 0;
  color: #5a7590;
  line-height: 1.7;
  max-width: 760px;
}

.lmg-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.lmg-info-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f2f8ff;
  border: 1px solid #d5e4f3;
  color: #315777;
  font-size: 12px;
  font-weight: 700;
}

.lmg-admin-form p {
  margin: 0 0 16px;
}

.lmg-admin-form label {
  display: block;
  margin-bottom: 6px;
  color: #204468;
  font-weight: 700;
}

.lmg-admin-form input[type="text"],
.lmg-admin-form input[type="email"],
.lmg-admin-form input[type="file"],
.lmg-admin-form textarea,
.lmg-admin-form select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 46px;
}

.lmg-admin-form textarea {
  min-height: 140px;
}

.lmg-admin-form .helptext {
  display: block;
  margin-top: 6px;
  color: #657f97;
  line-height: 1.5;
}

.submit-row .cancel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 10px;
}

.lmg-preview-card {
  border-radius: 18px;
  border: 1px solid #d8e4f0;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  overflow: hidden;
  margin-bottom: 18px;
}

.lmg-preview-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #e0eaf4;
  background: #f7fbff;
}

.lmg-preview-meta h2 {
  margin: 6px 0 0;
  color: #143a58;
}

.lmg-preview-body {
  padding: 22px 20px;
}

.lmg-preview-body p {
  line-height: 1.7;
}

.lmg-website-shell {
  display: grid;
  gap: 20px;
}

.lmg-website-panel {
  border-radius: 18px;
  border: 1px solid #d6e3f0;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 14px 30px rgba(25, 65, 102, 0.08);
  padding: 18px;
}

.lmg-website-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 18px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid #bbd4eb;
  background:
    radial-gradient(540px 240px at 100% 0%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(140deg, #0a3158 0%, #0c548f 58%, #0d7e97 100%);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(9, 48, 83, 0.24);
}

.lmg-website-hero-copy {
  display: grid;
  gap: 12px;
}

.lmg-website-hero-copy h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.06;
}

.lmg-website-hero-copy p {
  margin: 0;
  line-height: 1.7;
  max-width: 780px;
  opacity: 0.95;
}

.lmg-website-hero-actions {
  display: grid;
  gap: 10px;
  align-content: center;
}

.lmg-website-hero-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.lmg-website-hero-actions .button.default {
  background: #ffffff;
  border-color: #ffffff;
  color: #0d4f8f;
}

.lmg-website-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid #d8e5f1;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(24, 60, 94, 0.06);
}

.lmg-website-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #d7e4f1;
  background: #f8fbff;
  color: #20496d;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.lmg-website-nav a:hover {
  background: #eff6ff;
  color: #0b467f;
}

.lmg-website-nav a.is-active {
  background: linear-gradient(135deg, #0f5ca8 0%, #0e78a0 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(15, 92, 168, 0.2);
}

.app-website.change-list .lmg-website-panel #content-main,
.app-website.change-form .lmg-website-panel #content-main {
  background: transparent;
}

.app-website.change-list .lmg-website-panel .object-tools,
.app-website.change-form .lmg-website-panel .object-tools {
  margin-top: 0;
}

.app-website.change-list #changelist,
.app-website.change-form form {
  border-radius: 16px;
}

/* Login */
body.login {
  background: radial-gradient(700px 300px at 15% 10%, #d7e7fb 0, rgba(215, 231, 251, 0) 65%), #eef3f9;
}

.login #container {
  width: min(1020px, 92vw);
  min-height: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  margin-top: 3vh;
}

.login #header {
  border-radius: 14px;
}

.login #content {
  padding: 14px 0 0;
}

.lmg-login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 18px;
}

.lmg-login-intro {
  border-radius: 15px;
  background: linear-gradient(145deg, #082d4f 0%, #0f4f8d 52%, #0d7e97 100%);
  color: #ffffff;
  padding: 28px;
  box-shadow: 0 18px 36px rgba(7, 42, 76, 0.3);
}

.lmg-login-intro h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}

.lmg-login-intro p {
  margin: 12px 0 0;
  line-height: 1.6;
}

.lmg-login-card {
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #cedef0;
  box-shadow: 0 14px 30px rgba(22, 53, 84, 0.16);
  padding: 20px;
}

.login .form-row {
  padding: 8px 0;
}

.login .form-row label {
  font-weight: 700;
  color: #24496f;
}

.login .form-row input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 9px;
  border: 1px solid #b9cee3;
}

.login .form-row input:focus {
  border-color: #0f5ca8;
  box-shadow: 0 0 0 3px rgba(15, 92, 168, 0.16);
}

.login .submit-row {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 10px 0 0;
}

.login .submit-row input {
  width: 100%;
  min-height: 42px;
}

@media (max-width: 900px) {
  .lmg-admin-hero,
  .lmg-login-shell,
  .lmg-dashboard-grid,
  .lmg-admin-shell {
    grid-template-columns: 1fr;
  }

  .lmg-admin-hero h1 {
    font-size: 28px;
  }

  .lmg-panel-head,
  .lmg-admin-header,
  .lmg-section-head {
    flex-direction: column;
  }

  .lmg-info-grid {
    justify-content: flex-start;
  }

  .lmg-data-row,
  .lmg-compact-row,
  .lmg-mini-stats li,
  .lmg-help-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .lmg-data-row-meta {
    align-items: flex-start;
    min-width: 0;
  }
}
