@font-face {
  font-family: "Chevin Pro";
  src:
    local("Chevin Bold"),
    url("/fonts/ChevinPro-DemiBold.woff2") format("woff2"),
    url("/fonts/ChevinPro-DemiBold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

#sp-hub.sp-login {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  overflow: auto;
}

.sp-login-embed {
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.sp-login {
  box-sizing: border-box;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: max(2rem, env(safe-area-inset-top)) 1.25rem max(2.5rem, env(safe-area-inset-bottom));
  background: #f4f1e6;
  color: #1a2324;
  font-family: Poppins, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.sp-login *,
.sp-login *::before,
.sp-login *::after {
  box-sizing: border-box;
}

.sp-login-box {
  width: 100%;
  max-width: 22.5rem;
  margin: 0 auto;
}

.sp-login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 0 1.25rem;
}

.sp-login-brand img,
.sp-login-brand .sp-login-logo {
  width: auto;
  height: 5.5rem;
  max-width: 16rem;
  display: block;
  object-fit: contain;
}

.sp-login-brand h1 {
  margin: 1rem 0 0;
  font-family: "Chevin Pro", Poppins, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #1a2324;
}

.sp-login-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
  margin: 0;
  background: #fffdf7;
  border: 1px solid #d5d0be;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 1px 0 rgba(26, 35, 36, 0.04), 0 10px 28px -18px rgba(11, 79, 82, 0.35);
}

.sp-login-card > * + * {
  margin-top: 0;
}

.sp-login-card label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.375rem;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: Poppins, "Segoe UI", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: #1a2324;
}

.sp-login-card input,
.sp-login-input {
  display: block;
  width: 100%;
  height: 2.75rem;
  margin: 0;
  padding: 0 0.75rem;
  border: 1px solid #d5d0be;
  border-radius: 10px;
  background: #f4f1e6;
  color: #1a2324;
  font-family: Poppins, "Segoe UI", system-ui, sans-serif;
  font-size: 16px !important;
  font-weight: 400;
  line-height: 1.25;
  -webkit-appearance: none;
  appearance: none;
}

.sp-login-card input:focus,
.sp-login-input:focus {
  outline: 2px solid #007e83;
  outline-offset: 2px;
}

.sp-login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 2.75rem;
  margin: 0;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 10px;
  background: #007e83;
  color: #f4f1e6;
  font-family: "Chevin Pro", Poppins, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
}

.sp-login-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.sp-login-textbtn,
.sp-login-foot a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  margin: 0;
  padding: 0 0.75rem;
  border: 0;
  background: none;
  color: #007e83;
  font-family: Poppins, "Segoe UI", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.sp-login-err,
.sp-login-ok {
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}

.sp-login-err {
  color: #b42318;
}

.sp-login-ok {
  color: #2c6b4a;
}

.sp-login-err[hidden],
.sp-login-ok[hidden] {
  display: none !important;
}

.sp-login-title {
  margin: 0;
  padding: 0;
  font-family: "Chevin Pro", Poppins, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1a2324;
}

.sp-login-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  margin: 1rem 0 0;
  padding: 0;
  min-height: 2.75rem;
  text-align: center;
  color: #4a5859;
  font-size: 0.875rem;
  font-weight: 400;
}

.sp-login-foot a {
  display: inline-flex;
  width: auto;
  min-height: 0;
  padding: 0;
}

@media (orientation: landscape) and (max-height: 520px) {
  .sp-login {
    align-items: flex-start;
    justify-content: flex-start;
    overflow-y: auto;
    padding:
      max(0.35rem, env(safe-area-inset-top))
      max(0.75rem, env(safe-area-inset-right))
      max(0.4rem, env(safe-area-inset-bottom))
      max(0.75rem, env(safe-area-inset-left));
  }

  .sp-login-brand {
    margin-bottom: 0.25rem;
  }

  .sp-login-brand .sp-login-logo {
    width: 2.25rem;
    height: 2.25rem;
  }

  .sp-login-brand h1 {
    margin-top: 0.15rem;
    font-size: 1.15rem;
  }

  .sp-login-card {
    padding: 0.55rem 0.75rem;
  }

  .sp-login-foot {
    margin-top: 0.25rem;
    min-height: 0;
  }
}

