.login-page {
  --login-ink: #202924;
  --login-muted: #64716b;
  --login-line: #dde5e0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: #fff;
  color: var(--login-ink);
  font-family: Manrope, system-ui, sans-serif;
  letter-spacing: 0;
}

.login-page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1800px, calc(100% - 96px));
  margin: 0 auto;
  flex: 0 0 auto;
}

.login-page-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.login-page button { font-family: inherit; }
.login-page-footer button,
.login-help-link { background: none; color: var(--login-muted); padding: 8px 0; font-size: 14px; line-height: 22px; }
.login-page-footer button:hover,
.login-help-link:hover { color: #156c37; }

.login-page-hero {
  display: grid;
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  align-items: center;
  column-gap: 48px;
  width: min(1800px, calc(100% - 96px));
  margin: 0 auto;
  flex: 1 0 auto;
  min-height: 640px;
  padding: 32px 0;
}

.login-page-form { width: 100%; min-width: 0; position: relative; z-index: 1; }
.login-page-form h1 { margin: 0 0 18px; color: #156c37; font-size: 64px; font-weight: 600; line-height: 1; }
.login-page-form h2 { margin: 0; font-size: 30px; line-height: 1.25; font-weight: 600; }
.login-page #loginForm { margin-top: 30px; }
.login-page .field { gap: 8px; margin-bottom: 18px; }
.login-page .field > span,
.login-page .field > label { color: var(--login-ink); font-size: 14px; font-weight: 500; line-height: 20px; }
.login-page input { width: 100%; min-width: 0; height: 50px; border-radius: 6px; border: 1px solid #cdd8d1; background: #fff; padding: 0 14px; font-size: 16px; color: var(--login-ink); box-shadow: none; }
.login-page input::placeholder { color: #85918a; }
.login-password-field { position: relative; }
.login-password-field input { padding-right: 52px; }
.login-password-field button { position: absolute; inset: 3px 3px 3px auto; width: 44px; padding: 0; display: grid; place-items: center; background: transparent; border-radius: 4px; color: #68786e; }
.login-password-field button:hover { color: #156c37; background: #f1f7f3; }
.login-password-field .ui-icon { width: 20px; height: 20px; }
.login-page .login-submit { width: 100%; min-height: 50px; padding: 12px 16px; margin: 4px 0 0; border-radius: 6px; background: #156c37; color: #fff; font-size: 16px; font-weight: 600; box-shadow: none; transform: none; }
.login-page .login-submit:hover { background: #10572d; }
.login-page .login-submit:disabled { opacity: .65; cursor: wait; }
.login-help-link { margin-top: 12px; color: #156c37; text-align: left; }
.login-page-error { margin: 0 0 16px; padding: 10px 12px; color: #a82c3e; border-left: 3px solid #bf4251; background: #fff5f6; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.login-page-art { min-width: 0; margin: 0; display: flex; align-items: center; justify-content: center; }
.login-page-art img {
  width: 100%; height: auto; display: block; max-height: 820px; object-fit: contain;
  /* The road markings end above 88%; only the asphalt below them fades out. */
  -webkit-mask-image: linear-gradient(to bottom, #000 88%, rgba(0, 0, 0, .55) 90%, rgba(0, 0, 0, .06) 93%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 88%, rgba(0, 0, 0, .55) 90%, rgba(0, 0, 0, .06) 93%, transparent 100%);
}

.login-page-footer { min-height: 78px; padding: 18px 0; border-top: 1px solid var(--login-line); color: var(--login-muted); font-size: 12px; line-height: 20px; }
.login-page-footer button { font-size: 12px; }
.login-page :is(button, input, a):focus-visible,
.login-dialog-backdrop :is(button, input, textarea, summary, a):focus-visible { outline: 2px solid #156c37; outline-offset: 3px; }

.login-dialog-backdrop { padding: 24px 16px; z-index: 1000; place-items: center; align-items: safe center; }
.login-dialog { display: flex; flex-direction: column; width: min(640px, 100%); max-height: calc(100dvh - 48px); min-height: 0; padding: 0; border-radius: 8px; }
.login-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-bottom: 1px solid #dde5e0; flex: 0 0 auto; }
.login-dialog-header h2 { font-size: 23px; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.login-dialog-close { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 6px; background: #f3f6f4; color: #365744; }
.login-dialog-close:hover { background: #e5efe9; }
.login-dialog-body { padding: 24px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.login-dialog-intro { margin: 0 0 24px; font-size: 14px; line-height: 1.65; color: #64716b; }
.login-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.login-contact-form .field { gap: 7px; margin-bottom: 18px; }
.login-contact-form .field > span { color: #33463b; font-size: 13px; }
.login-contact-form input,
.login-contact-form textarea { min-width: 0; width: 100%; border-radius: 6px; font-size: 16px; border: 1px solid #cdd8d1; background: #fff; color: #202924; }
.login-contact-form input { min-height: 44px; }
.login-contact-form textarea { min-height: 112px; max-height: 240px; resize: vertical; line-height: 1.5; }
.login-contact-data { color: #64716b; font-size: 12px; line-height: 1.6; }
.login-contact-data summary { cursor: pointer; padding: 4px 0; }
.login-contact-data p { margin: 10px 0 0; }
.login-contact-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 24px; border-top: 1px solid #dde5e0; padding-top: 20px; }
.login-contact-actions .contact-owner-status { flex: 1 1 200px; overflow-wrap: anywhere; }
.login-dialog .btn { border-radius: 6px; padding: 10px 16px; min-height: 44px; box-shadow: none; transform: none; }
.login-feature-list article { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid #e5eae7; }
.login-feature-list article:first-child { padding-top: 0; }
.login-feature-list article:last-child { border-bottom: 0; }
.login-feature-list .ui-icon { color: #156c37; width: 24px; height: 24px; flex: 0 0 24px; margin-top: 2px; }
.login-feature-list h3,
.login-data-info h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.4; }
.login-feature-list p,
.login-data-info p { margin: 0; color: #64716b; font-size: 14px; line-height: 1.65; }
.login-data-info p + p { margin-top: 12px; }
.login-data-info h3:not(:first-child) { margin-top: 24px; }
.login-dialog-actions { padding-top: 20px; border-top: 1px solid #dde5e0; display: flex; justify-content: flex-end; }

@media (max-width: 1200px) {
  .login-page-footer, .login-page-hero { width: calc(100% - 64px); }
  .login-page-hero { grid-template-columns: 350px minmax(0, 1fr); column-gap: 24px; min-height: 620px; padding: 28px 0; }
  .login-page-form h1 { font-size: 56px; }
  .login-page-form h2 { font-size: 27px; }
}

@media (min-width: 901px) and (max-height: 850px) {
  .login-page-hero { min-height: 560px; padding: 20px 0; }
  .login-page-form h1 { font-size: 56px; margin-bottom: 14px; }
  .login-page-form h2 { font-size: 27px; }
  .login-page #loginForm { margin-top: 20px; }
  .login-page .field { margin-bottom: 14px; gap: 6px; }
  .login-page input, .login-page .login-submit { min-height: 48px; height: 48px; }
  .login-help-link { margin-top: 8px; }
  .login-page-footer { min-height: 64px; padding: 10px 0; }
  .login-page-art img { max-height: 580px; }
}

@media (max-width: 900px) {
  .login-page-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 28px 0 20px; }
  .login-page-form { max-width: 420px; margin: 0 auto; }
  .login-page-art { margin: 24px auto 0; width: min(100%, 560px); }
  .login-page-art img { max-height: 300px; object-fit: contain; }
  .login-page-footer { flex-wrap: wrap; justify-content: center; text-align: center; padding: 14px 0; gap: 4px 24px; }
}

@media (max-width: 600px) {
  .login-page-footer, .login-page-hero { width: calc(100% - 40px); }
  .login-page-hero { padding-top: 24px; }
  .login-page-form h1 { font-size: 46px; margin-bottom: 14px; }
  .login-page-form h2 { font-size: 25px; }
  .login-page #loginForm { margin-top: 26px; }
  .login-help-link { min-height: 44px; }
  .login-page-art { margin-top: 12px; }
  .login-page-footer nav { gap: 12px; justify-content: center; }
  .login-page-footer button { min-height: 44px; }
  .login-dialog-backdrop { padding: 12px; }
  .login-dialog { max-height: calc(100dvh - 24px); }
  .login-dialog-header { padding: 14px 16px; gap: 12px; }
  .login-dialog-header h2 { font-size: 20px; }
  .login-dialog-body { padding: 20px 16px; }
  .login-contact-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .login-contact-actions { gap: 12px; }
  .login-contact-actions .btn { width: 100%; }
  .login-dialog-actions .btn { width: 100%; }
}

@media (max-width: 360px) {
  .login-page-form h2 { font-size: 23px; }
}
