/* =====================================================================
   LOCALBUDDY — LOGIN (login.php)
   Page-specific styles. Global tokens/header/footer: style.css
   ===================================================================== */

body.lb-login { background: #ffffff; }

.lbl-main {
  position: relative;
  overflow: hidden;
  padding: 22px 0 64px;
}

/* Soft green waves behind the card */
.lbl-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 0% 100%, #d8f2dc 0%, rgba(216, 242, 220, 0) 70%),
    radial-gradient(55% 40% at 100% 95%, #cdeed3 0%, rgba(205, 238, 211, 0) 70%),
    radial-gradient(40% 30% at 100% 45%, #e6f7e9 0%, rgba(230, 247, 233, 0) 70%),
    radial-gradient(35% 30% at 0% 35%, #eef9f0 0%, rgba(238, 249, 240, 0) 70%),
    #ffffff;
}

.lbl-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------------------------------------------------------------------
   ADVERTISE BANNER (same look as Find a Service)
   --------------------------------------------------------------------- */
.lbl-adv {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 48px;
  padding: 22px 56px;
  border-radius: 14px;
  background:
    radial-gradient(160px 120px at 0% 110%, #3fae5a 0%, rgba(63, 174, 90, 0) 70%),
    radial-gradient(160px 130px at 100% 110%, #3fae5a 0%, rgba(63, 174, 90, 0) 70%),
    linear-gradient(100deg, #075a2b 0%, #0b6b34 60%, #0d7a3c 100%);
  color: #ffffff;
}
.lbl-adv-ico { display: none; }
.lbl-adv-kicker {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
}
.lbl-adv h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: #ffffff;
}
.lbl-adv-mid {
  margin: 0;
  padding-left: 44px;
  border-left: 2px solid rgba(255, 255, 255, .45);
  font-size: 18px;
  line-height: 1.38;
  color: rgba(255, 255, 255, .94);
}
.lbl-adv-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 32px;
  border-radius: 10px;
  background: var(--lb-yellow);
  color: #111827 !important;
  font-size: 19px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(248, 197, 28, .3);
  transition: transform .2s ease, background-color .2s ease;
}
.lbl-adv-btn:hover { background: #ffd23a; transform: translateY(-2px); }

/* ---------------------------------------------------------------------
   STAGE: mascot + card  (sizes = design px × --u, design width 1536)
   --------------------------------------------------------------------- */
.lbl-main { --u: clamp(0.66px, 0.0651vw, 1.12px); }

.lbl-stage {
  position: relative;
  max-width: calc(1008 * var(--u));
  margin: calc(34 * var(--u)) auto 0;
  transform: translateX(calc(120 * var(--u)));
}

.lbl-mascot {
  position: absolute;
  left: calc(-385 * var(--u));
  top: calc(16 * var(--u));
  bottom: auto;
  z-index: 0;
  width: calc(445 * var(--u));
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(16, 24, 40, .15));
  animation: lblWave 3.6s ease-in-out infinite;
  transform-origin: 60% 90%;
}
@keyframes lblWave {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-2deg) translateY(-4px); }
}

.lbl-card {
  position: relative;
  z-index: 1;
  padding: calc(28 * var(--u)) calc(40 * var(--u)) calc(32 * var(--u));
  background: #ffffff;
  border-radius: calc(34 * var(--u));
  box-shadow: 0 24px 60px rgba(16, 24, 40, .12), 0 2px 6px rgba(16, 24, 40, .04);
}

.lbl-head { text-align: center; margin-bottom: calc(20 * var(--u)); }
.lbl-head h1 {
  margin: 0;
  font-size: calc(56 * var(--u));
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #0b0f14;
}
.lbl-head h1 span { color: var(--lb-green); }
.lbl-head p {
  margin: calc(6 * var(--u)) 0 0;
  font-size: calc(22 * var(--u));
  font-weight: 500;
  color: #1f2937;
}

/* One login for both roles */
.lbl-roles {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: calc(12 * var(--u));
  margin: 0 auto calc(16 * var(--u));
  max-width: calc(912 * var(--u));
}
.lbl-role {
  display: flex;
  align-items: center;
  gap: calc(16 * var(--u));
  padding: calc(14 * var(--u)) calc(20 * var(--u));
  border-radius: calc(18 * var(--u));
  background: linear-gradient(135deg, #0b6b34 0%, #10843f 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(11, 107, 52, .22);
}
.lbl-role + .lbl-role-plus + .lbl-role {
  background: #ffffff;
  color: var(--lb-ink);
  border: 1px solid #e6ebe8;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .08);
}
.lbl-role-ico {
  flex: 0 0 calc(60 * var(--u));
  width: calc(60 * var(--u));
  height: calc(60 * var(--u));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(14 * var(--u));
  background: rgba(255, 255, 255, .16);
  font-size: calc(30 * var(--u));
}
.lbl-role-ico.is-yellow { background: var(--lb-green-soft); color: var(--lb-green); }
.lbl-role-txt { display: flex; flex-direction: column; min-width: 0; }
.lbl-role-txt strong { font-size: calc(25 * var(--u)); font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; }
.lbl-role-txt small { margin-top: calc(3 * var(--u)); font-size: calc(17 * var(--u)); line-height: 1.3; opacity: .92; }
.lbl-role-plus {
  width: calc(32 * var(--u));
  height: calc(32 * var(--u));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--lb-yellow);
  color: #1d2939;
  font-size: calc(13 * var(--u));
  box-shadow: 0 4px 10px rgba(248, 197, 28, .4);
}
.lbl-roles-note {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  font-size: calc(15 * var(--u));
  font-weight: 600;
  color: var(--lb-green-dark);
}
.lbl-roles-note i { margin-right: 4px; }

/* Form */
.lbl-form { max-width: calc(850 * var(--u)); margin: 0 auto; }

.lbl-field {
  position: relative;
  display: flex;
  align-items: center;
  height: calc(54 * var(--u));
  margin: 0 0 calc(14 * var(--u));
  padding: 0 calc(14 * var(--u)) 0 calc(22 * var(--u));
  border: 1.5px solid #cfd8e3;
  border-radius: calc(12 * var(--u));
  background: #ffffff;
  cursor: text;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.lbl-field:focus-within {
  border-color: var(--lb-green);
  box-shadow: 0 0 0 4px rgba(11, 107, 52, .12);
}
.lbl-field-ico { width: calc(28 * var(--u)); font-size: calc(24 * var(--u)); color: #111827; }
.lbl-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 0 0 calc(18 * var(--u));
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--lb-font);
  font-size: max(16px, calc(20 * var(--u)));
  font-weight: 500;
  color: var(--lb-ink);
}
.lbl-field input::placeholder { color: #6b7280; }
.lbl-eye {
  width: calc(42 * var(--u));
  height: calc(42 * var(--u));
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #111827;
  font-size: calc(22 * var(--u));
  cursor: pointer;
}
.lbl-eye:hover { background: #f2f4f7; }

.lbl-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: calc(2 * var(--u)) 0 calc(20 * var(--u));
}
.lbl-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: calc(14 * var(--u));
  font-size: calc(20 * var(--u));
  font-weight: 600;
  color: #111827;
  cursor: pointer;
}
.lbl-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lbl-check-box {
  width: calc(28 * var(--u));
  height: calc(28 * var(--u));
  border: 2px solid #344054;
  border-radius: 6px;
  background: #fff;
  transition: background-color .15s ease, border-color .15s ease;
}
.lbl-check input:checked + .lbl-check-box {
  border-color: var(--lb-green);
  background: var(--lb-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.lbl-check input:focus-visible + .lbl-check-box { outline: 3px solid rgba(11, 107, 52, .35); outline-offset: 2px; }
.lbl-forgot { font-size: calc(20 * var(--u)); font-weight: 600; color: var(--lb-green) !important; text-decoration: none; }
.lbl-forgot:hover { text-decoration: underline; }

.lbl-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: calc(62 * var(--u));
  border: 0;
  border-radius: calc(14 * var(--u));
  background: linear-gradient(180deg, #13883f 0%, #0b6b34 100%);
  color: #ffffff;
  font-family: var(--lb-font);
  font-size: calc(32 * var(--u));
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(11, 107, 52, .3);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.lbl-submit:hover { filter: brightness(1.05); transform: translateY(-1px); }
.lbl-submit:active { transform: scale(.99); }
.lbl-submit:disabled { cursor: wait; opacity: .85; transform: none; }
.lbl-submit.is-loading::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lblSpin .8s linear infinite;
}
@keyframes lblSpin { to { transform: rotate(360deg); } }

.lbl-divider {
  display: flex;
  align-items: center;
  gap: calc(18 * var(--u));
  margin: calc(22 * var(--u)) 0 calc(14 * var(--u));
  font-size: calc(21 * var(--u));
  font-weight: 700;
  color: #111827;
}
.lbl-divider::before,
.lbl-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #cfd8e3;
}

.lbl-signup {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, calc(670 * var(--u)));
  height: calc(58 * var(--u));
  margin: 0 auto;
  border: 3px solid var(--lb-green);
  border-radius: calc(16 * var(--u));
  background: #ffffff;
  color: var(--lb-green) !important;
  font-size: calc(34 * var(--u));
  font-weight: 800;
  text-decoration: none;
  transition: background-color .2s ease;
}
.lbl-signup:hover { background: var(--lb-green-soft); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1500px) {
  .lbl-adv { padding: 20px 36px; gap: 32px; }
  .lbl-adv h2 { font-size: 26px; }
  .lbl-adv-mid { font-size: 15.5px; padding-left: 30px; }
  .lbl-adv-btn { height: 50px; font-size: 16px; padding: 0 24px; }
}

@media (max-width: 1200px) {
  .lbl-container { padding: 0 24px; }
  .lbl-adv { grid-template-columns: 1fr auto; }
  .lbl-adv-mid { display: none; }
  .lbl-main { --u: clamp(0.66px, 0.075vw, 1px); }
  .lbl-stage { transform: none; max-width: 760px; }
  .lbl-mascot { width: 180px; left: -150px; top: 30px; }
}

@media (max-width: 991.98px) {
  .lbl-main { --u: 0.8px; }
  .lbl-roles { grid-template-columns: 1fr; }
  .lbl-role-plus { justify-self: center; margin: -6px 0; }
  .lbl-mascot { display: none; }
}

/* ---------------------------------------------------------------------
   MOBILE (≤ 767px)
   --------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .lbl-main { padding: 12px 0 40px; --u: 1px; }
  .lbl-stage { transform: none; max-width: none; }
  .lbl-container { padding: 0 14px; }

  .lbl-adv {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 12px 12px 12px 14px;
    border-radius: 16px;
  }
  .lbl-adv-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .14);
    color: var(--lb-yellow);
    font-size: 17px;
  }
  .lbl-adv-kicker { font-size: 10px; margin: 0; letter-spacing: .08em; }
  .lbl-adv h2 { font-size: 14.5px; line-height: 1.25; letter-spacing: -0.01em; }
  .lbl-adv-btn { height: 36px; padding: 0 12px; gap: 6px; border-radius: 10px; font-size: 0; box-shadow: none; }
  .lbl-adv-btn::before { content: "Advertise"; font-size: 13px; }
  .lbl-adv-btn i { font-size: 12px; }

  .lbl-stage { margin-top: 14px; }
  /* Mascot sits inside the card, right of the heading */
  .lbl-mascot {
    display: block;
    width: auto;
    height: 138px;
    max-width: 96px;
    object-fit: contain;
    object-position: right top;
    left: auto;
    right: 10px;
    top: 16px;
    bottom: auto;
    z-index: 2;
    filter: drop-shadow(0 8px 12px rgba(16, 24, 40, .14));
  }
  .lbl-card { padding: 26px 18px 24px; border-radius: 26px; }
  .lbl-head { text-align: left; margin-bottom: 18px; padding-right: 92px; min-height: 128px; }
  .lbl-head h1 { font-size: 26px; }
  .lbl-head p { font-size: 14px; margin-top: 6px; color: #475467; }

  .lbl-roles { grid-template-columns: 1fr auto 1fr; gap: 6px; margin-bottom: 18px; }
  .lbl-role { padding: 10px; gap: 8px; border-radius: 14px; }
  .lbl-role-ico { flex-basis: 34px; width: 34px; height: 34px; font-size: 15px; border-radius: 10px; }
  .lbl-role-txt strong { font-size: 13px; line-height: 1.2; }
  .lbl-role-txt small { display: none; }
  .lbl-role-plus { width: 22px; height: 22px; font-size: 10px; margin: 0; }
  .lbl-roles-note { font-size: 12.5px; text-align: left; }

  .lbl-field { height: 52px; margin-bottom: 12px; padding: 0 10px 0 16px; border-radius: 14px; }
  .lbl-field-ico { width: 22px; font-size: 18px; }
  .lbl-field input { font-size: 16px; padding-left: 12px; }

  .lbl-options { margin-bottom: 18px; }
  .lbl-check { gap: 10px; font-size: 14.5px; }
  .lbl-check-box { width: 22px; height: 22px; }
  .lbl-forgot { font-size: 14px; }

  .lbl-submit { height: 54px; font-size: 19px; border-radius: 14px; }
  .lbl-divider { margin: 20px 0 14px; font-size: 14px; gap: 10px; }
  .lbl-signup { height: 52px; font-size: 18px; border-width: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .lbl-mascot { animation: none; }
}