/* 3.0 auth surface: same Inter typography and slate/blue palette as the app. */
body:has(#ls-login-page) {
  background: #f7f9fc;
  color: #0f172a;
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
}

body:has(#ls-login-page) .main-header,
body:has(#ls-login-page) .main-footer {
  display: none;
}

body:has(#ls-login-page) .content-wrapper {
  min-height: 100vh !important;
  margin-left: 0 !important;
  background:
    radial-gradient(circle at 12% 12%, rgba(224, 237, 255, .8), transparent 28%),
    #f7f9fc;
}

.ls-login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
}

.ls-login-card {
  width: min(100%, 430px);
  padding: 40px;
  background: #fff;
  border: 1px solid #d9e1ea;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .025);
  text-align: left;
}

.ls-login-logo {
  display: block;
  width: 214px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 28px;
}

.ls-login-eyebrow {
  margin: 0 0 8px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
  text-align: center;
}

.ls-login-card h1 {
  margin: 0;
  color: #0f172a;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.2;
  text-align: center;
}

.ls-login-subtitle {
  margin: 10px 0 28px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.ls-login-form label {
  display: block;
  margin: 0 0 7px;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
}

.ls-login-input-wrap {
  display: flex;
  align-items: center;
  height: 46px;
  margin-bottom: 17px;
  padding: 0 13px;
  border: 1px solid #d9e1ea;
  border-radius: 8px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.ls-login-input-wrap:focus-within {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(224, 237, 255, .9);
}

.ls-login-input-wrap i {
  width: 18px;
  margin-right: 10px;
  color: #94a3b8;
  font-size: 14px;
  text-align: center;
}

.ls-login-input-wrap input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font: 500 14px/1 "Inter", "Segoe UI", Roboto, sans-serif;
}

.ls-login-password-toggle {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 14px;
}

.ls-login-password-toggle:hover { color: #475569; }
.ls-login-password-toggle:focus,
.ls-login-password-toggle:focus-visible { outline: 0; }

.ls-login-input-wrap input::placeholder { color: #94a3b8; }

/* Keep saved credentials visually consistent with empty fields. Chrome/Safari
   otherwise paint only the editable input area with their autofill color. */
.ls-login-input-wrap input:-webkit-autofill,
.ls-login-input-wrap input:-webkit-autofill:hover,
.ls-login-input-wrap input:-webkit-autofill:focus,
.ls-login-input-wrap input:-webkit-autofill:active {
  -webkit-text-fill-color: #0f172a;
  caret-color: #0f172a;
  box-shadow: 0 0 0 1000px #fff inset !important;
  transition: background-color 9999s ease-out 0s;
}

.ls-login-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
  padding: 0 16px;
  border: 1px solid #69c947;
  border-radius: 8px;
  background: #69c947;
  color: #fff;
  font: 600 14px/1 "Inter", "Segoe UI", Roboto, sans-serif;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

.ls-login-submit:hover {
  border-color: #58b43a;
  background: #58b43a;
}
.ls-login-submit:active { transform: translateY(1px); }
.ls-login-submit:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
.ls-login-submit:disabled { cursor: wait; opacity: .7; }

.ls-login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 23px 0 17px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.ls-login-divider::before,
.ls-login-divider::after {
  flex: 1;
  border-top: 1px solid #edf2f7;
  content: "";
}

.microsoft-sign-in-btn { margin-bottom: 22px; }

.ls-login-forgot,
.ls-login-demo {
  display: block;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.ls-login-forgot { margin: 21px 0 9px; font-weight: 600; }
.ls-login-demo { margin: 0; }
.ls-login-forgot:hover,
.ls-login-demo a:hover { color: #0f172a; }
.ls-login-forgot,
.ls-login-demo a { color: #475569; text-decoration: none; }
.ls-login-demo a { font-weight: 700; }

.ls-login-error,
.ls-login-message {
  margin-bottom: 18px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff1f2;
  color: #be123c;
  font-size: 12px;
  line-height: 1.4;
}

.ls-login-message {
  background: #eff6ff;
  color: #1d4ed8;
}

@media (max-width: 480px) {
  .ls-login-page { padding: 20px 14px; }
  .ls-login-card { padding: 30px 22px; border-radius: 12px; }
}
