/*
 * Site pages: log in, sign up, password reset, contact, privacy policy, 404.
 * Same tokens as the redesigned creators and index pages (.lh-maker).
 */

.lh-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 0 48px;
  color: #212529;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
}

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

.lh-page h1 {
  margin: 0;
  padding: 8px 0 6px;
  color: #212529;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

.lh-page h2 {
  margin: 32px 0 10px;
  color: #212529;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}

.lh-page h3 {
  margin: 24px 0 8px;
  color: #212529;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.lh-page p,
.lh-page li {
  max-width: none;
  color: #212529;
  font-size: 16px;
  line-height: 1.6;
}

.lh-page p {
  margin: 0 0 14px;
}

.lh-page a {
  color: #1875d0;
  text-decoration: none;
}

.lh-page a:hover {
  text-decoration: underline;
}

.lh-page .lh-intro {
  margin: 0 0 28px;
  color: #495057;
}

.lh-page .lh-muted {
  color: #6c757d;
  font-size: 14px;
}

/* Narrow single-form pages (log in, sign up, password) */

.lh-page.lh-auth {
  max-width: 440px;
}

.lh-card {
  margin: 0 0 20px;
  padding: 28px;
  background: #fff;
  border: 1px solid #e2e6ea;
  border-radius: 12px;
}

.lh-page form {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.lh-card > :last-child {
  margin-bottom: 0;
}

/* Fields */

.lh-page .lh-field {
  margin: 0 0 18px;
}

.lh-page label.lh-label,
.lh-page .create_formhead,
.lh-page .gk-signup-label {
  display: block;
  margin: 0 0 6px;
  color: #212529;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.lh-page input[type="text"],
.lh-page input[type="email"],
.lh-page input[type="password"],
.lh-page textarea,
.lh-page select {
  display: block;
  width: 100% !important;
  max-width: none;
  height: 44px;
  margin: 0 !important;
  padding: 10px 12px;
  color: #212529;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.3;
  box-shadow: none;
}

.lh-page textarea {
  height: auto;
  min-height: 160px;
  resize: vertical;
}

.lh-page input:focus,
.lh-page textarea:focus,
.lh-page select:focus {
  outline: none;
  border-color: #1875d0;
  box-shadow: 0 0 0 3px rgba(24, 117, 208, 0.25);
}

.lh-page ::placeholder {
  color: #6c757d;
  opacity: 1;
}

.lh-page .lh-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 18px;
  color: #495057;
  font-size: 14px;
  line-height: 1.5;
}

.lh-page .lh-check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #1875d0;
}

.lh-page .lh-check label {
  margin: 0;
  font-weight: 400;
}

/* Buttons */

.lh-page .lh-btn,
.lh-page button.create_button,
.lh-page input[type="submit"].create_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  height: auto;
  margin: 4px 0 0;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  background: #1875d0;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.lh-page .lh-btn:hover,
.lh-page button.create_button:hover,
.lh-page input[type="submit"].create_button:hover {
  background: #135ba2;
  color: #fff;
  box-shadow: none;
  transform: none;
}

.lh-page .lh-btn:focus-visible,
.lh-page button.create_button:focus-visible,
.lh-page input[type="submit"].create_button:focus-visible {
  outline: 2px solid #1875d0;
  outline-offset: 2px;
}

.lh-page .lh-btn[disabled],
.lh-page button.create_button[disabled] {
  background: #8bb8e6;
  cursor: default;
}

.lh-page .lh-btn-inline {
  width: auto;
  min-width: 200px;
}

a.lh-btn,
a.lh-btn:hover {
  text-decoration: none;
}

/* Links under a form */

.lh-page .lh-below {
  margin: 0;
  color: #495057;
  font-size: 15px;
  text-align: center;
}

.lh-page .lh-below + .lh-below {
  margin-top: 8px;
}

.lh-page .lh-forgot {
  margin: -6px 0 18px;
  font-size: 14px;
  text-align: right;
}

/* Messages */

.lh-page .lh-msg {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
}

.lh-page .lh-msg-error {
  color: #842029;
  background: #f8d7da;
  border: 1px solid #f1aeb5;
}

.lh-page .lh-msg-ok {
  color: #0f5132;
  background: #d1e7dd;
  border: 1px solid #a3cfbb;
}

.lh-page .lh-msg p {
  margin: 0 0 8px;
  color: inherit;
  font-size: inherit;
}

.lh-page .lh-msg p:last-child {
  margin-bottom: 0;
}

/* Sign up benefits */

.lh-page .lh-benefits {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.lh-page .lh-benefits li {
  position: relative;
  margin: 0 0 6px;
  padding-left: 28px;
  color: #212529;
}

.lh-page .lh-benefits li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1875d0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 16px 16px;
}

/* Sign up: password field with show/hide eye (guest-keep) */

.lh-page #submitForm .gk-password {
  position: relative;
  width: 100%;
  margin: 0;
}

.lh-page #submitForm .gk-password input {
  padding-right: 48px;
}

.lh-page .gk-hint {
  width: auto;
  margin: 6px 0 0;
  color: #6c757d;
  font-size: 14px;
  line-height: 1.4;
}

.lh-page #submitForm .gk-hint {
  margin: 6px 0 18px;
}

.lh-page #submitForm .lh-field .gk-hint {
  margin-bottom: 0;
}

.lh-page .gk-eye {
  width: 40px;
  height: 36px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #6c757d;
  box-shadow: none;
}

.lh-page .gk-eye svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}

.lh-page .lh-intro + .lh-benefits {
  margin-top: -16px;
}

.lh-page .g-recaptcha {
  margin: 0 0 18px;
}

/* Long text pages (privacy policy) */

.lh-page.lh-prose h2 {
  margin-top: 36px;
}

.lh-page.lh-prose h3 {
  margin-top: 26px;
}

.lh-page.lh-prose ul,
.lh-page.lh-prose ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.lh-page.lh-prose li {
  margin: 0 0 6px;
}

.lh-page.lh-prose > ul {
  padding-left: 0;
}

.lh-page.lh-prose li ul {
  margin: 8px 0 14px;
  padding-left: 22px;
  list-style: disc !important;
}

.lh-page.lh-prose table {
  max-width: 100%;
}

/* Contact */

.lh-page.lh-contact {
  max-width: 640px;
}

/* 404 */

.lh-page.lh-404 {
  max-width: 560px;
  padding-top: 40px;
  text-align: center;
}

.lh-page.lh-404 h1 {
  text-align: center;
}

.lh-page.lh-404 .lh-404-code {
  margin: 0;
  color: #1875d0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.lh-page.lh-404 .lh-404-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 26px 0 0;
}

.lh-page.lh-404 .lh-404-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #1875d0;
  border-radius: 8px;
  color: #1875d0;
  font-weight: 600;
  text-decoration: none;
}

.lh-page.lh-404 .lh-404-links a.lh-btn {
  width: auto;
  margin: 0;
  color: #fff;
  border-color: #1875d0;
}

.lh-page.lh-404 .lh-404-links a:hover {
  background: #f4f8fc;
}

.lh-page.lh-404 .lh-404-links a.lh-btn:hover {
  background: #135ba2;
}

@media (max-width: 520px) {
  .lh-card {
    padding: 20px;
  }

  .lh-page h1 {
    font-size: 26px;
  }
}

/* Guest-keep messages and hints inside site pages */

.lh-page .gk-error {
  margin: 0 0 18px;
  padding: 12px 14px;
  color: #842029;
  background: #f8d7da;
  border: 1px solid #f1aeb5;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

.lh-page #submitForm .gk-hint {
  width: auto;
  max-width: none;
}
