:root {
  --lms-sky: #7f90ad;
  --lms-navy: #0a283a;
  --lms-blue: #374b66;
  --lms-orange: #e48c60;
  --lms-beige: #ebe8e5;
  --lms-taupe: #d7ccc2;
  --lms-white: #ffffff;
  --lms-off: #f8f7f5;
  --lms-ink: #112838;
  --lms-success: #2d7b59;
  --lms-error: #b44d39;
  --lms-shadow: 0 24px 70px rgba(10, 40, 58, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.lms-body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--lms-ink);
  background: var(--lms-off);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[hidden] {
  display: none !important;
}

.lms-flash {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 30;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 14px;
  color: var(--lms-white);
  box-shadow: var(--lms-shadow);
}

.lms-flash-success,
.lms-flash-info {
  background: var(--lms-success);
}

.lms-flash-error {
  background: var(--lms-error);
}

.lms-login-shell {
  min-height: 100vh;
  display: flex;
}

.lms-login-brand {
  position: relative;
  overflow: hidden;
  width: 480px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  background: var(--lms-navy);
  color: var(--lms-white);
}

.lms-login-brand::before {
  content: '';
  position: absolute;
  bottom: -160px;
  right: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 144, 173, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.lms-login-brand::after {
  content: '';
  position: absolute;
  top: -80px;
  left: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 140, 96, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.lms-login-brand-top,
.lms-login-brand-bottom {
  position: relative;
  z-index: 1;
}

.lms-login-logo-link {
  display: inline-flex;
}

.lms-login-logo {
  width: auto;
  height: 68px;
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

.lms-login-brand-title {
  margin: 56px 0 16px;
  font-size: 32px;
  font-weight: 800;
  color: var(--lms-white);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.lms-login-brand-title span {
  color: var(--lms-sky);
}

.lms-login-brand-subtitle {
  max-width: 340px;
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.68;
}

.lms-login-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 48px;
}

.lms-login-feature {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lms-login-feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lms-login-feature-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--lms-orange);
  stroke-width: 1.8;
}

.lms-login-feature > span:last-child {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

.lms-login-brand-bottom {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
}

.lms-login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.lms-login-card {
  width: 100%;
  max-width: 420px;
}

.lms-login-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 40px;
  font-size: 13px;
  font-weight: 500;
  color: var(--lms-sky);
  transition: color 0.2s ease;
}

.lms-login-back:hover {
  color: var(--lms-orange);
}

.lms-login-back svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.lms-login-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  color: var(--lms-navy);
  letter-spacing: -0.02em;
}

.lms-login-subtitle {
  margin: 0 0 36px;
  font-size: 15px;
  color: var(--lms-blue);
}

.lms-form {
  display: block;
}

.lms-form-group {
  margin-bottom: 20px;
}

.lms-form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lms-navy);
}

.lms-form-input {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border: 1.5px solid var(--lms-beige);
  border-radius: 10px;
  background: var(--lms-white);
  color: var(--lms-navy);
  font-size: 14px;
  line-height: 22px;
  outline: none;
  transition: border-color 0.2s ease;
}

.lms-form-input:focus {
  border-color: var(--lms-orange);
}

.lms-form-input::placeholder {
  color: var(--lms-taupe);
}

.lms-input-wrap {
  position: relative;
}

.lms-input-wrap .lms-form-input {
  padding-right: 48px;
}

.lms-input-wrap .lms-form-input[type="password"] {
  letter-spacing: normal;
}

.lms-password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 4px;
  border: none;
  background: none;
  color: var(--lms-taupe);
  cursor: pointer;
  transition: color 0.2s ease;
}

.lms-password-toggle:hover {
  color: var(--lms-navy);
}

.lms-password-toggle svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

.lms-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.lms-form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.lms-form-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--lms-orange);
  cursor: pointer;
}

.lms-form-check span {
  font-size: 13px;
  color: var(--lms-blue);
}

.lms-form-forgot {
  font-size: 13px;
  font-weight: 600;
  color: var(--lms-orange);
  transition: color 0.2s ease;
}

.lms-form-forgot:hover {
  color: #d4784e;
}

.lms-primary-button,
.lms-ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.lms-primary-button {
  width: 100%;
  padding: 16px;
  background: var(--lms-orange);
  color: var(--lms-white);
  font-size: 15px;
  font-weight: 700;
}

.lms-primary-button:hover,
.lms-ghost-button:hover {
  transform: translateY(-1px);
}

.lms-primary-button:hover {
  background: #d4784e;
}

.lms-primary-button svg,
.lms-dashboard-link svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

.lms-form-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
}

.lms-form-divider-line {
  flex: 1;
  height: 1px;
  background: var(--lms-beige);
}

.lms-form-divider-text {
  font-size: 12px;
  color: var(--lms-taupe);
  white-space: nowrap;
}

.lms-secondary-button {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border: 1.5px solid var(--lms-beige);
  border-radius: 10px;
  background: var(--lms-white);
  color: var(--lms-navy);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s ease;
}

.lms-secondary-button:hover {
  border-color: var(--lms-navy);
}

.lms-secondary-button svg {
  width: 16px;
  height: 16px;
  stroke: var(--lms-sky);
  stroke-width: 1.8;
}

.lms-form-footer {
  margin-top: 32px;
  text-align: center;
}

.lms-form-footer p {
  margin: 0;
  font-size: 13px;
  color: var(--lms-taupe);
}

.lms-form-footer a,
.lms-dashboard-link {
  color: var(--lms-orange);
  font-weight: 600;
}

.lms-dashboard-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.lms-dashboard-eyebrow,
.lms-panel-kicker {
  margin: 0 0 8px;
  color: var(--lms-orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lms-dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.lms-dashboard-header h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
  color: var(--lms-navy);
}

.lms-dashboard-header p {
  max-width: 720px;
  margin: 0;
  color: var(--lms-blue);
  line-height: 1.7;
}

.lms-dashboard-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lms-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr);
  gap: 24px;
}

.lms-panel {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(10, 40, 58, 0.06);
  box-shadow: var(--lms-shadow);
  backdrop-filter: blur(10px);
}

.lms-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.lms-panel h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--lms-navy);
  letter-spacing: -0.03em;
}

.lms-product-grid {
  display: grid;
  gap: 16px;
}

.lms-product-card {
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(248, 247, 245, 0.96), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(10, 40, 58, 0.06);
}

.lms-product-top {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.lms-product-top strong {
  font-size: 1.15rem;
  color: var(--lms-navy);
}

.lms-product-badge {
  justify-self: start;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lms-blue);
  background: rgba(127, 144, 173, 0.16);
}

.lms-progress-block {
  display: grid;
  gap: 10px;
}

.lms-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--lms-navy);
  font-weight: 600;
}

.lms-progress-bar {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(127, 144, 173, 0.14);
}

.lms-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lms-orange), #edaa86);
}

.lms-progress-block p {
  margin: 0;
  color: var(--lms-blue);
}

.lms-empty-state {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 26px;
  border-radius: 22px;
  color: var(--lms-blue);
  background: linear-gradient(180deg, rgba(127, 144, 173, 0.08), rgba(255, 255, 255, 0.9));
}

.lms-empty-state h3 {
  margin: 0;
  color: var(--lms-navy);
}

.lms-empty-state p {
  margin: 0;
  line-height: 1.7;
}

.lms-ghost-button {
  min-height: 54px;
  padding: 0 22px;
  color: var(--lms-navy);
  background: transparent;
  border: 1px solid rgba(10, 40, 58, 0.14);
}

.lms-form-compact {
  margin-top: 0;
}

@media (max-width: 960px) {
  .lms-login-shell {
    flex-direction: column;
  }

  .lms-login-brand {
    width: 100%;
    padding: 36px 32px 28px;
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }

  .lms-login-features,
  .lms-login-brand-bottom,
  .lms-login-brand-subtitle {
    display: none;
  }

  .lms-login-logo {
    height: 58px;
  }

  .lms-login-brand-title {
    margin: 0;
    font-size: 20px;
  }

  .lms-login-main {
    padding: 36px 24px;
  }

  .lms-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .lms-flash {
    top: 16px;
    left: 16px;
    right: 16px;
    max-width: none;
  }

  .lms-dashboard-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .lms-dashboard-header {
    flex-direction: column;
  }

  .lms-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .lms-form-input {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .lms-login-brand {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px 24px;
  }

  .lms-login-logo {
    height: 66px;
  }

  .lms-login-brand-title {
    margin-top: 18px;
    font-size: 18px;
  }

  .lms-login-main {
    padding: 32px 20px;
  }

  .lms-form-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
