/* Little Moo Hosting auth stylesheet (login-only scope) */
:root {
  --lmh-auth-bg-start: #08070d;
  --lmh-auth-bg-end: #121026;
  --lmh-auth-panel: #100f1f;
  --lmh-auth-border: rgba(165, 138, 255, 0.28);
  --lmh-auth-text: #f6f2ff;
  --lmh-auth-muted: #cbbfe3;
  --lmh-auth-accent: #9b82ff;
  --lmh-auth-accent-strong: #7a5ef5;
  --lmh-auth-focus: #35d6c9;
  --lmh-auth-panel-ring: rgba(155, 130, 255, 0.36);
}

body.lmh-auth-page[data-templatefile="login"] {
  margin: 0;
  background:
    radial-gradient(1200px 700px at -10% -20%, rgba(155, 130, 255, 0.25), transparent 60%),
    radial-gradient(1000px 600px at 110% 100%, rgba(72, 47, 191, 0.24), transparent 58%),
    linear-gradient(150deg, var(--lmh-auth-bg-start), var(--lmh-auth-bg-end));
}

body.lmh-auth-page[data-templatefile="login"] {
  min-height: 100vh;
  min-height: 100svh;
}

body.lmh-auth-page[data-templatefile="login"] .lmh-header,
body.lmh-auth-page[data-templatefile="login"] .lmh-footer,
body.lmh-auth-page[data-templatefile="login"] #main-body > .container > .row > .lmh-sidebar-column {
  display: none;
}

body.lmh-auth-page[data-templatefile="login"] .lmh-main-body {
  padding: 0;
}

body.lmh-auth-page[data-templatefile="login"] a.btn-return-to-admin[href*="returntoadmin=1"] {
  display: none !important;
}

body.lmh-auth-page[data-templatefile="login"] #main-body > .container,
body.lmh-auth-page[data-templatefile="login"] #main-body > .container > .row,
body.lmh-auth-page[data-templatefile="login"] .lmh-primary-content {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.lmh-auth-page[data-templatefile="login"] .lmh-primary-content {
  min-height: 100vh;
  min-height: 100svh;
}

.lmh-auth-layout {
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 48% 52%;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--lmh-auth-text);
}

body.lmh-auth-page[data-templatefile="login"] > .lmh-auth-layout {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
}

.lmh-auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow-y: auto;
  padding: clamp(1.6rem, 2.8vw, 2.8rem);
  background:
    radial-gradient(800px 440px at 0% 0%, rgba(155, 130, 255, 0.2), transparent 54%),
    linear-gradient(170deg, rgba(31, 24, 58, 0.95), rgba(10, 8, 21, 0.98));
}

.lmh-auth-inner {
  width: min(100%, 480px);
  margin: auto 0;
  padding: clamp(0.2rem, 0.6vw, 0.5rem) 0;
}

.lmh-auth-brand {
  margin-bottom: 1.35rem;
}

.lmh-auth-logo {
  display: block;
  width: clamp(180px, 28vw, 230px);
  max-width: 100%;
  height: auto;
}

.lmh-auth-eyebrow {
  margin: 0.2rem 0 0;
  color: #d8caee;
  font: 600 0.83rem/1.2 Inter, "Segoe UI", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lmh-auth-heading {
  margin: 0;
  color: #fff;
  font: 700 clamp(2.75rem, 4vw, 3.35rem)/1.04 Syne, "Segoe UI", sans-serif;
  letter-spacing: -0.03em;
}

.lmh-auth-support {
  margin: 0.95rem 0 1.75rem;
  color: var(--lmh-auth-muted);
  font: 400 clamp(0.95rem, 1.2vw, 1.04rem)/1.6 Inter, "Segoe UI", sans-serif;
}

.lmh-auth-form .alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
  padding: 0.95rem 1rem;
  border-radius: 13px;
  border: 1px solid transparent;
  font: 500 0.94rem/1.45 Inter, "Segoe UI", sans-serif;
  word-break: break-word;
}

.lmh-auth-form .alert::before {
  flex: 0 0 auto;
  font-size: 1rem;
  line-height: 1;
  margin-top: 0.18rem;
}

.lmh-auth-form .alert-danger {
  color: #ffe7ea;
  background: rgba(110, 20, 35, 0.45);
  border-color: rgba(255, 128, 150, 0.5);
}

.lmh-auth-form .alert-danger::before {
  content: "!";
}

.lmh-auth-form .alert-success {
  color: #e8fff0;
  background: rgba(22, 95, 52, 0.42);
  border-color: rgba(118, 239, 173, 0.48);
}

.lmh-auth-form .alert-success::before {
  content: "✓";
}

.lmh-auth-form .alert-warning {
  color: #fff8e2;
  background: rgba(120, 78, 18, 0.42);
  border-color: rgba(255, 199, 101, 0.55);
}

.lmh-auth-form .alert-warning::before {
  content: "!";
}

.lmh-auth-form .alert-info {
  color: #e9f7ff;
  background: rgba(18, 74, 114, 0.4);
  border-color: rgba(114, 202, 255, 0.5);
}

.lmh-auth-form .alert-info::before {
  content: "i";
}

.lmh-auth-field {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 1.12rem;
}

.lmh-auth-field label,
.lmh-auth-form .form-control-label {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: #fff;
  font: 600 0.875rem/1.4 Inter, "Segoe UI", sans-serif;
}

.lmh-auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0.45rem;
}

.lmh-auth-label-row .form-control-label {
  margin-bottom: 0;
}

.lmh-auth-field .form-control,
.lmh-auth-password .form-control {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 54px;
  height: 54px;
  border: 1px solid rgba(173, 152, 255, 0.35);
  border-radius: 14px;
  background: rgba(13, 11, 25, 0.65);
  color: var(--lmh-auth-text);
  font: 500 16px/1.4 Inter, "Segoe UI", sans-serif;
  padding: 0 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.lmh-auth-field .form-control::placeholder,
.lmh-auth-password .form-control::placeholder {
  color: rgba(229, 218, 255, 0.62);
}

.lmh-auth-field .form-control:focus,
.lmh-auth-password .form-control:focus {
  border-color: rgba(181, 157, 255, 0.78);
  box-shadow: 0 0 0 3px var(--lmh-auth-panel-ring);
}

.lmh-auth-field .form-control:-webkit-autofill,
.lmh-auth-field .form-control:-webkit-autofill:hover,
.lmh-auth-field .form-control:-webkit-autofill:focus,
.lmh-auth-password .form-control:-webkit-autofill,
.lmh-auth-password .form-control:-webkit-autofill:hover,
.lmh-auth-password .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--lmh-auth-text);
  box-shadow: inset 0 0 0 1000px rgba(13, 11, 25, 0.95);
  transition: background-color 9999s ease-in-out 0s;
}

.lmh-auth-password {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.lmh-auth-password .form-control {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-right: 72px;
}

.lmh-auth-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 40px;
  min-height: 40px;
  padding: 0 0.65rem;
  border: 1px solid rgba(173, 152, 255, 0.34);
  border-radius: 11px;
  background: rgba(124, 95, 238, 0.18);
  color: #fff;
  font: 600 0.75rem/1 Inter, "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.lmh-auth-password-toggle:hover {
  background: rgba(145, 120, 247, 0.28);
  border-color: rgba(188, 168, 255, 0.55);
}

.lmh-auth-submit {
  width: 100%;
  min-height: 54px;
  height: 54px;
  border: 0;
  border-radius: 14px;
  margin-top: 0.15rem;
  background: #8f75ff;
  color: #fff;
  font: 700 1rem/1 Inter, "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(70, 45, 180, 0.32);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.lmh-auth-submit:hover {
  background: #9b82ff;
}

.lmh-auth-submit:active {
  transform: translateY(1px);
}

.lmh-auth-submit:disabled,
.lmh-auth-submit.disabled {
  background: rgba(143, 117, 255, 0.46);
  color: rgba(255, 255, 255, 0.72);
  cursor: not-allowed;
  box-shadow: none;
}

.lmh-auth-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8rem;
  margin: 0.15rem 0 1rem;
}

.lmh-auth-check-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #ddd2f5;
  font: 500 0.95rem/1.4 Inter, "Segoe UI", sans-serif;
  cursor: pointer;
}

.lmh-auth-meta .form-check-input {
  position: static;
  margin: 0;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #9b82ff;
}

.lmh-auth-check-row span {
  color: #ddd2f5;
}

.lmh-auth-link,
.lmh-auth-footer a,
.lmh-auth-form a {
  color: #d9ccff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lmh-auth-footer {
  margin-top: 0.95rem;
  padding-top: 0;
  border-top: 0;
  color: var(--lmh-auth-muted);
  font: 400 0.94rem/1.5 Inter, "Segoe UI", sans-serif;
}

.lmh-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.1rem 0 0.9rem;
  color: rgba(224, 213, 249, 0.82);
  font: 500 0.86rem/1.3 Inter, "Segoe UI", sans-serif;
}

.lmh-auth-divider::before,
.lmh-auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(189, 170, 248, 0.3);
}

.lmh-auth-help {
  color: var(--lmh-auth-muted);
  text-align: center;
}

.lmh-auth-help p {
  max-width: 420px;
  margin: 0 auto 0.85rem;
  font: 400 0.9rem/1.5 Inter, "Segoe UI", sans-serif;
}

.lmh-auth-help-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.lmh-auth-help-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 46px;
  padding: 0.7rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #fff;
  font: 700 0.9rem/1.25 Inter, "Segoe UI", sans-serif;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.lmh-auth-help-action-primary {
  background: #7659db;
  box-shadow: 0 8px 20px rgba(70, 45, 180, 0.24);
}

.lmh-auth-help-action-primary:hover {
  background: #684bcf;
  color: #fff;
  text-decoration: none;
}

.lmh-auth-help-action-secondary {
  border-color: rgba(191, 175, 244, 0.42);
  background: rgba(15, 13, 28, 0.72);
  color: #ece4ff;
}

.lmh-auth-help-action-secondary:hover {
  border-color: rgba(202, 190, 252, 0.62);
  background: rgba(40, 34, 68, 0.86);
  color: #fff;
  text-decoration: none;
}

.lmh-auth-linked-wrap .social-signin-btns {
  margin-top: 0;
}

.lmh-auth-linked-wrap .social-signin-btns .btn,
.lmh-auth-linked-wrap .social-signin-btns a,
.lmh-auth-linked-wrap .social-signin-btns button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border-radius: 13px;
  border: 1px solid rgba(191, 175, 244, 0.35);
  background: rgba(15, 13, 28, 0.72);
  color: #ece4ff;
  font: 600 0.95rem/1.3 Inter, "Segoe UI", sans-serif;
  text-decoration: none;
}

.lmh-auth-linked-wrap .social-signin-btns .btn:hover,
.lmh-auth-linked-wrap .social-signin-btns a:hover,
.lmh-auth-linked-wrap .social-signin-btns button:hover {
  background: rgba(40, 34, 68, 0.86);
  border-color: rgba(202, 190, 252, 0.5);
}

.lmh-auth-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  background: #0b0913;
}

.lmh-auth-visual-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: 50% 42%;
}

.lmh-auth-visual-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(16, 13, 31, 0.08) 0%, rgba(16, 13, 31, 0.52) 100%),
    linear-gradient(120deg, rgba(123, 83, 255, 0.3), rgba(20, 16, 36, 0));
}

.lmh-auth-visual-copy {
  position: absolute;
  right: clamp(24px, 4vw, 72px);
  bottom: clamp(24px, 5vh, 64px);
  left: clamp(24px, 4vw, 72px);
  z-index: 2;
  color: #fff;
}

@media (min-width: 1025px) {
  .lmh-auth-visual {
    min-height: 100vh;
    min-height: 100svh;
  }
}

.lmh-auth-visual-copy p {
  margin: 0;
  color: rgba(238, 231, 255, 0.9);
  font: 600 0.78rem/1.2 Inter, "Segoe UI", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lmh-auth-visual-copy h2 {
  margin: 0.55rem 0 0;
  font: 700 clamp(1.4rem, 2.5vw, 2.2rem)/1.1 Syne, "Segoe UI", sans-serif;
  text-wrap: balance;
}

.lmh-auth-form .form-control:focus,
.lmh-auth-password-toggle:focus-visible,
.lmh-auth-form a:focus-visible,
.lmh-auth-form button:focus-visible,
.lmh-auth-footer a:focus-visible,
.lmh-auth-help-action:focus-visible,
.lmh-auth-meta .form-check-input:focus,
.lmh-auth-meta .form-check-input:focus-visible,
.lmh-auth-linked-wrap .social-signin-btns .btn:focus,
.lmh-auth-linked-wrap .social-signin-btns .btn:focus-visible {
  outline: 2px solid var(--lmh-auth-focus);
  outline-offset: 2px;
  box-shadow: none;
}

@media (max-width: 1024px) {
  .lmh-auth-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .lmh-auth-visual {
    min-height: clamp(9rem, 28vw, 13rem);
    order: -1;
  }

  .lmh-auth-panel {
    align-items: flex-start;
    min-height: auto;
    padding-top: 1rem;
  }
}

@media (max-width: 768px) {
  body.lmh-auth-page[data-templatefile="login"] .lmh-primary-content {
    min-height: auto;
  }

  .lmh-auth-layout {
    min-height: 100vh;
    min-height: 100svh;
  }

  .lmh-auth-visual {
    min-height: 7.3rem;
  }

  .lmh-auth-visual-copy {
    display: none;
  }

  .lmh-auth-heading {
    font-size: clamp(2rem, 9vw, 2.35rem);
  }

  .lmh-auth-support {
    font-size: 0.98rem;
  }

  .lmh-auth-label-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .lmh-auth-field .form-control,
  .lmh-auth-password .form-control {
    font-size: 1rem;
  }

  .lmh-auth-form .alert {
    padding: 0.9rem 0.95rem;
    line-height: 1.45;
  }

  .lmh-auth-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 430px) {
  .lmh-auth-panel {
    padding: 0.95rem;
  }

  .lmh-auth-inner {
    width: 100%;
  }

  .lmh-auth-form .social-signin-btns > * {
    max-width: 100%;
  }

  .lmh-auth-help-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 820px) and (min-width: 1025px) {
  .lmh-auth-panel {
    align-items: flex-start;
  }

  .lmh-auth-inner {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lmh-auth-layout * {
    animation: none !important;
    transition: none !important;
  }
}
