:root {
  --login-purple: #8586e5;
  --login-purple-dark: #5353b0;
  --login-purple-deep: #41428f;
  --login-lavender: #ebebff;
  --login-lavender-pale: #f6f5ff;
  --login-ink: #17172f;
  --login-muted: #6b7184;
  --login-border: #e5e5f0;
}

.dashmatic-login-page {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #fff;
  color: var(--login-ink);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dashmatic-login-page > .container-fluid,
.dashmatic-login-page > .container-fluid > .row,
.dashmatic-login-page > .container-fluid > .row > div,
.dashmatic-login-shell,
.dashmatic-login-shell > .card-body,
.dashmatic-login-shell > .card-body > .row {
  min-height: 100vh;
}

.dashmatic-login-shell {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.dashmatic-login-visual {
  position: relative;
  min-height: 100vh;
  padding: 54px 58px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: linear-gradient(155deg, var(--login-purple), var(--login-purple-deep));
}

.dashmatic-login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(180deg, rgba(34, 31, 98, .13) 0%, transparent 35%, rgba(36, 30, 112, .48) 100%);
}

.dashmatic-login-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 1.15s ease;
}

.dashmatic-login-video.is-active {
  opacity: 1;
}

.dashmatic-login-visual-copy {
  position: relative;
  z-index: 2;
}

.dashmatic-login-visual-copy {
  max-width: 560px;
  color: #fff;
  text-shadow: 0 2px 22px rgba(27, 22, 92, .28);
}

.dashmatic-login-visual-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.04;
}

.dashmatic-login-visual-copy p {
  max-width: 500px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.65;
}

.dashmatic-powered-by {
  display: inline;
}

.dashmatic-powered-by i {
  margin: 0 4px 0 2px;
  color: #ffd43b;
  font-size: .9em;
  text-shadow: 0 0 12px rgba(255, 212, 59, .55);
}

.dashmatic-login-form-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background:
    radial-gradient(circle at 90% 8%, var(--login-lavender) 0, transparent 24%),
    #fff;
}

.dashmatic-login-form-wrap {
  width: min(100%, 440px);
}

.dashmatic-form-heading {
  margin-bottom: 34px;
}

.dashmatic-login-wordmark {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--login-ink);
}

.dashmatic-login-wordmark img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.dashmatic-login-wordmark span {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.04em;
}

.dashmatic-form-heading h1 {
  margin: 18px 0 7px;
  color: var(--login-ink);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.035em;
}

.dashmatic-form-heading p {
  margin: 0;
  color: var(--login-muted);
  font-size: .95rem;
}

.dashmatic-field {
  margin-bottom: 19px;
}

.dashmatic-field label {
  margin-bottom: 7px;
  color: var(--login-ink);
  font-size: .78rem;
  font-weight: 750;
}

.dashmatic-login-page .form-control-user {
  height: 54px;
  padding: 0 17px !important;
  border: 1px solid var(--login-border);
  border-radius: 13px !important;
  background: #fbfbfe;
  color: var(--login-ink);
  font-size: .9rem !important;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.dashmatic-login-page .form-control-user:focus {
  border-color: var(--login-purple);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(133, 134, 229, .15);
}

.dashmatic-login-page .custom-control-label {
  color: var(--login-muted);
  font-size: .8rem;
  font-weight: 600;
}

.dashmatic-login-page .custom-control-input:checked ~ .custom-control-label::before {
  border-color: var(--login-purple);
  background: var(--login-purple);
}

.dashmatic-login-page #loginButton {
  min-height: 52px;
  margin-top: 26px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--login-purple), var(--login-purple-dark));
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(83, 83, 176, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}

.dashmatic-login-page #loginButton:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(83, 83, 176, .31);
}

.dashmatic-login-page .alert-danger {
  margin-top: 20px;
  border: 1px solid #f7c9cf;
  border-radius: 12px;
  background: #fff5f6;
  color: #9e3340;
  font-size: .82rem;
}

.dashmatic-login-footer {
  margin-top: 30px;
  color: #9297a7;
  font-size: .73rem;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 991.98px) {
  .dashmatic-login-visual {
    min-height: 420px;
    padding: 32px;
    background-position: center 52%;
  }

  .dashmatic-login-form-panel {
    min-height: auto;
    padding: 64px 24px;
  }
}

@media (max-width: 575.98px) {
  .dashmatic-login-visual {
    min-height: 330px;
    padding: 24px;
  }

  .dashmatic-login-visual-copy h2 {
    font-size: 2rem;
  }

  .dashmatic-login-form-panel {
    padding: 48px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashmatic-login-video {
    transition: none;
  }
}
