/* Account access shares the search panel's surfaces and controls. */
@layer creek-auth-style {
  /* Account dialogs must cover site navigation at every viewport size. */
  html body #authModal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 12010 !important;
    box-sizing: border-box;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)) !important;
    overflow: hidden !important;
    overscroll-behavior: contain;
  }
  html body #authModal.open { display: grid !important; place-items: center; }
  html body.creek-auth-page { background: #f3f4f6 !important; }
  html body.creek-auth-page .panel { padding: 32px 20px !important; }
  html body.creek-auth-page .card {
    width: min(520px, 100%) !important;
    padding: 30px !important;
    background: #d7dae2 !important;
    border: 0 !important;
    border-radius: 28px !important;
    box-shadow: none !important;
  }
  html body.creek-auth-page .card > .brand { margin-bottom: 16px !important; }
  html body.creek-auth-page .creek-logo-image,
  html body #authModal .auth-mobile-brand .creek-logo-image {
    background: transparent url('/assets/creek-rentals-logo-light.svg') center/contain no-repeat !important;
  }
  html body.creek-auth-page .card > .back {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    font-size: 13px !important;
    font-weight: 600 !important;
  }
  html body.creek-auth-page .card h2 {
    margin: 18px 0 10px !important;
    font-size: 32px !important;
    line-height: 1.15 !important;
  }
  html body.creek-auth-page .sub { margin: 0; color: #535d69 !important; font-size: 15px; }

  html body #authModal .auth-premium {
    width: min(520px, 100%) !important;
    height: auto !important;
    max-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom))) !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 28px !important;
    grid-template-columns: 1fr !important;
    overflow: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-shadow: none !important;
    background: #d7dae2 !important;
  }
  html body #authModal .auth-showcase,
  html body #authModal .auth-kicker,
  html body #authModal .auth-security { display: none !important; }
  html body #authModal .auth-mobile-brand {
    display: block !important;
    margin: 0 44px 20px 0 !important;
  }
  html body #authModal .auth-mobile-brand .creek-portal-brand { max-width: 100%; min-width: 0; }
  html body #authModal .auth-form-pane {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 30px !important;
    background: #d7dae2 !important;
  }
  html body #authModal .auth-kicker { margin: 0 44px 14px 0 !important; color: #525c68 !important; }
  html body #authModal .auth-form-pane h2 { font-size: 32px !important; line-height: 1.15 !important; }
  html body #authModal #authSubheading { font-size: 15px !important; color: #535d69 !important; }

  html body.creek-auth-page .card .tabs,
  html body #authModal .auth-tabs {
    padding: 5px !important;
    gap: 4px !important;
    margin: 22px 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #c9cdd4 !important;
  }
  html body.creek-auth-page .card .tabs button,
  html body #authModal .auth-tabs button {
    min-height: 44px !important;
    padding: 10px 12px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #101419 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 20px !important;
    box-shadow: none !important;
  }
  html body.creek-auth-page .card .tabs button:hover,
  html body #authModal .auth-tabs button:hover { background: #e5e7eb !important; }
  html body.creek-auth-page .card .tabs button.active,
  html body #authModal .auth-tabs button.active {
    background: #101419 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
  html body.creek-auth-page #form { gap: 14px !important; }
  html body.creek-auth-page #form label,
  html body #authModal #authForm label:not(.auth-remember),
  html body #authModal #passwordResetForm label {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 18px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: #535d69 !important;
    margin-bottom: 0 !important;
  }
  html body.creek-auth-page #form label small { font-size: 12px; font-weight: 400; }
  html body.creek-auth-page #form input:not([type='hidden']),
  html body #authModal #authForm input:not([type='checkbox']):not([type='hidden']),
  html body #authModal #passwordResetEmail {
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: #fff !important;
    color: #101419 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 24px !important;
    box-shadow: none !important;
  }
  html body.creek-auth-page #form input { margin-top: 6px !important; }
  html body.creek-auth-page #form #password { padding-right: 68px !important; }
  html body.creek-auth-page .show-pass {
    min-width: 56px;
    min-height: 44px;
    right: 8px !important;
    bottom: 4px !important;
    color: #535d69;
  }
  html body #authModal #authForm { gap: 8px !important; }
  html body #authModal #authForm input:not([type='checkbox']) { margin: 0 0 10px !important; }
  html body #authModal .auth-name-fields label { display: block; margin-bottom: 6px !important; }
  html body #authModal .auth-form-meta { margin: 0 0 10px !important; gap: 10px; }

  /* Password recovery uses the same secondary control as the account screens. */
  html body #authModal .auth-forgot,
  html body.creek-auth-page #forgotPassword {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px !important;
    padding: 10px 16px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #eef0f3 !important;
    color: #101419 !important;
    -webkit-text-fill-color: #101419 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 20px !important;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: none !important;
    transform: none !important;
    cursor: pointer;
    touch-action: manipulation;
  }
  html body #authModal .auth-forgot:not(:disabled):hover,
  html body.creek-auth-page #forgotPassword:not(:disabled):hover {
    background: #ff3600 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
  html body #authModal .auth-forgot:not(:disabled):active,
  html body.creek-auth-page #forgotPassword:not(:disabled):active {
    background: #e63000 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
  html body #authModal .auth-forgot:focus-visible,
  html body.creek-auth-page #forgotPassword:focus-visible {
    -webkit-text-fill-color: #101419 !important;
  }
  html body.creek-auth-page #forgotPassword.hidden { display: none !important; }

  html body #authModal .auth-remember { min-height: 44px; }
  html body #authModal .auth-remember input {
    width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 18px;
    accent-color: #ff3600 !important;
  }

  html body.creek-auth-page .card .primary,
  html body.creek-auth-page .success > a,
  html body #authModal #authForm .btn-primary,
  html body #authModal .password-reset-submit {
    min-height: 50px !important;
    height: auto !important;
    padding: 13px 20px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #ff3600 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 24px !important;
    box-shadow: none !important;
    transform: none !important;
  }
  html body.creek-auth-page .card .primary:hover,
  html body.creek-auth-page .success > a:hover,
  html body #authModal #authForm .btn-primary:hover,
  html body #authModal .password-reset-submit:hover { background: #e63000 !important; }
  html body.creek-auth-page .success > button,
  html body #authModal .password-reset-cancel {
    border: 0 !important;
    border-radius: 999px !important;
    background: #eef0f3 !important;
    color: #101419 !important;
    min-height: 44px !important;
  }
  html body #authModal .modal-close,
  html body #authModal .password-reset-close {
    width: 40px !important;
    height: 40px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #eef0f3 !important;
    color: #101419 !important;
    box-shadow: none !important;
  }
  html body #authModal .modal-close:hover,
  html body #authModal .password-reset-close:hover { background: #c9cdd4 !important; }
  html body #authModal .auth-security {
    margin-top: 14px !important;
    padding: 14px !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: #eef0f3 !important;
  }
  html body #authModal .auth-security > span { border-radius: 50% !important; }
  html body.creek-auth-page .legal,
  html body #authModal .auth-legal { font-size: 12px !important; color: #535d69 !important; }
  html body.creek-auth-page .message:empty,
  html body #authModal #authMessage:empty { display: none !important; }
  html body #authModal .password-reset-layer {
    position: fixed !important;
    inset: 0 !important;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)) !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  html body #authModal .password-reset-panel {
    max-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom))) !important;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
    background: #d7dae2 !important;
    border: 0 !important;
    border-radius: 28px !important;
    box-shadow: none !important;
  }
  html body #authModal .password-reset-kicker { color: #535d69 !important; }

  @media (max-width: 820px) {
    html body #authModal .auth-premium { grid-template-columns: 1fr !important; width: min(520px, 100%) !important; }
    html body #authModal .auth-form-pane { padding: 28px 22px 24px !important; }
    html body #authModal .auth-mobile-brand { margin: 0 40px 24px 0 !important; }
    html body #authModal .auth-mobile-brand .creek-portal-brand { max-width: 100%; min-width: 0; }
    html body #authModal .auth-kicker { margin-bottom: 12px !important; }
  }
  @media (max-width: 520px) {
    html body.creek-auth-page .panel { padding: 16px 12px !important; }
    html body.creek-auth-page .card { padding: 24px 20px !important; border-radius: 26px !important; }
    html body.creek-auth-page .card h2,
    html body #authModal .auth-form-pane h2 { font-size: 28px !important; }
    html body.creek-auth-page .card .tabs button,
    html body #authModal .auth-tabs button {
      padding-inline: 6px !important;
      font-size: 13px !important;
      white-space: nowrap !important;
    }
  }
}


