* {
  box-sizing: border-box;
}

:root {
  --login-brand: #087c3b;
  --login-brand-deep: #05582a;
  --login-brand-soft: #e9f8ed;
  --login-page: #ddf4df;
  --login-paper: #ffffff;
  --login-line: #cfe9d6;
  --login-text: #173726;
  --login-muted: #5e7468;
  --login-danger: #b42318;
  --login-shadow: 0 18px 45px rgba(5, 88, 42, 0.13);
}

body.rd-user-login-page {
  margin: 0;
  min-height: 100vh;
  color: var(--login-text);
  background: var(--login-page);
  font-family: "Siyam Rupali", "Noto Sans Bengali", "Hind Siliguri", Calibri, Arial, sans-serif;
  line-height: 1.45;
}

.login-site-header {
  min-height: 64px;
  padding: 7px clamp(16px, 5vw, 72px);
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  background: linear-gradient(90deg, var(--login-brand-deep), var(--login-brand));
  color: #fff;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.login-brand img,
.login-footer img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.login-nav,
.login-header-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.login-nav a,
.login-header-actions a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.45;
  white-space: nowrap;
}

.login-header-actions a {
  min-height: 36px;
  padding: 6px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.login-header-actions .solid {
  background: #fff;
  color: var(--login-brand-deep);
  border-color: #fff;
}

.login-menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  padding: 12px;
}

.login-menu-btn span {
  display: block;
  height: 3px;
  margin: 6px 0;
  border-radius: 999px;
  background: #fff;
}

.login-main {
  min-height: calc(100vh - 64px);
  padding-bottom: 0;
  background:
    linear-gradient(180deg, #fff 0 34%, transparent 34%),
    var(--login-page);
}

.login-hero {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(330px, 390px);
  align-items: center;
  gap: clamp(20px, 4vw, 52px);
  padding: 18px 0;
}

.login-visual {
  min-height: 320px;
  display: grid;
  place-items: center;
}

.login-device {
  position: relative;
  width: min(340px, 86%);
  aspect-ratio: 0.78;
  border-radius: 34px;
  border: 8px solid #183c2a;
  background: #f8fff9;
  box-shadow: var(--login-shadow);
  transform: rotate(-3deg);
}

.login-device::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 9px;
  width: 100px;
  height: 18px;
  border-radius: 999px;
  background: #183c2a;
  transform: translateX(-50%);
}

.login-device-screen {
  position: absolute;
  inset: 46px 22px 28px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border-radius: 24px;
  background: linear-gradient(180deg, #f1fff4, #ffffff);
  border: 1px solid var(--login-line);
  text-align: center;
}

.login-device-screen img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.login-device-screen strong {
  color: var(--login-brand-deep);
  font-size: 26px;
  line-height: 1.25;
}

.login-device-screen span {
  color: var(--login-muted);
  font-size: 15px;
}

.login-lock {
  position: absolute;
  right: -18px;
  bottom: 38px;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: var(--login-brand);
  color: #fff;
  box-shadow: 0 14px 30px rgba(8, 124, 59, 0.24);
}

.login-lock svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-panel {
  padding: 22px 24px;
  border: 1px solid var(--login-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--login-shadow);
}

.login-panel-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}

.login-panel h1 {
  margin: 0 0 14px;
  color: var(--login-brand-deep);
  text-align: center;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.25;
}

.login-form,
.reset-panel {
  display: grid;
  gap: 10px;
}

.login-form label,
.reset-panel label {
  display: grid;
  gap: 4px;
  color: var(--login-brand-deep);
  font-size: 14px;
  line-height: 1.35;
}

.login-form input,
.reset-panel input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--login-line);
  border-radius: 10px;
  background: #fbfffc;
  color: var(--login-text);
  font: inherit;
  line-height: 1.35;
  outline: none;
}

.login-form input:focus,
.reset-panel input:focus {
  border-color: var(--login-brand);
  box-shadow: 0 0 0 3px rgba(8, 124, 59, 0.12);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 46px;
}

.password-field button {
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-50%);
  z-index: 2;
  width: 30px;
  height: 30px;
  border: 1px solid #c8ecd4;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0;
  background: #f2fbf5;
  color: var(--login-brand-deep);
  cursor: pointer;
  box-shadow: none;
}

.password-field svg,
.login-mobile-nav svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-submit {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--login-brand);
  color: #fff;
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(8, 124, 59, 0.18);
}

.login-submit:disabled {
  opacity: 0.62;
  cursor: wait;
}

.login-status {
  min-height: 18px;
  color: var(--login-danger);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.login-status.success {
  color: var(--login-brand);
}

.login-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
}

.login-links a,
.login-links button {
  border: 0;
  background: transparent;
  color: var(--login-brand-deep);
  font: inherit;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
}

.login-links a {
  color: #0a8b45;
}

.reset-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--login-line);
  border-radius: 14px;
  background: #fbfffc;
}

.reset-panel[hidden] {
  display: none !important;
}

.reset-page-panel .reset-panel {
  margin-top: 0;
}

.reset-page-panel .login-links {
  justify-content: center;
}

.reset-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  color: var(--login-brand-deep);
}

.reset-head button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--login-brand-soft);
  color: var(--login-brand-deep);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.login-reset-otp-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.login-reset-otp-modal[hidden] {
  display: none !important;
}

.login-reset-otp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 42, 21, 0.42);
  backdrop-filter: blur(8px);
}

.login-reset-otp-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  border: 1px solid rgba(11, 122, 53, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 60px rgba(5, 58, 27, 0.22);
  padding: 20px;
  color: var(--login-text);
}

.login-reset-otp-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--login-brand-soft);
  color: var(--login-brand-deep);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.login-reset-otp-card small {
  display: block;
  color: var(--login-brand);
  font-size: 12px;
  font-weight: 800;
}

.login-reset-otp-card h2 {
  margin: 2px 0 7px;
  color: var(--login-brand-deep);
  font-size: 26px;
  line-height: 1.2;
}

.login-reset-otp-card p {
  margin: 0 0 12px;
  color: var(--login-muted);
  font-size: 14px;
  line-height: 1.45;
}

.login-reset-otp-card label {
  display: grid;
  gap: 6px;
  color: var(--login-brand-deep);
  font-size: 13px;
  font-weight: 800;
}

.login-reset-otp-card input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--login-line);
  border-radius: 12px;
  background: #fbfffc;
  color: var(--login-text);
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 4px;
  text-align: center;
  outline: 0;
}

.login-reset-otp-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.login-reset-otp-actions button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--login-brand-soft);
  color: var(--login-brand-deep);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.login-reset-otp-actions button:last-child {
  background: var(--login-brand);
  color: #fff;
}

.login-reset-otp-status {
  min-height: 19px;
  margin-top: 10px !important;
  font-size: 12px !important;
  font-weight: 800;
}

.login-reset-otp-status.error {
  color: var(--login-danger);
}

.login-footer {
  display: none;
}

.login-footer h2 {
  margin: 0 0 12px;
  color: var(--login-brand-deep);
  font-size: 20px;
  line-height: 1.4;
}

.login-footer p {
  margin: 5px 0;
  color: var(--login-text);
  line-height: 1.55;
}

.login-footer a {
  display: block;
  margin: 6px 0;
  color: var(--login-text);
  text-decoration: none;
  line-height: 1.5;
}

.login-mobile-nav {
  display: none;
}

@media (max-width: 900px) {
  body.rd-user-login-page {
    padding-bottom: 68px;
  }

  .login-site-header {
    min-height: 72px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px 18px;
    border-radius: 0;
  }

  .login-brand img {
    width: 52px;
    height: 52px;
  }

  .login-brand span {
    font-size: 20px;
  }

  .login-nav,
  .login-header-actions {
    display: none;
  }

  .login-menu-btn {
    display: block;
  }

  .login-main {
    min-height: auto;
    padding-bottom: 0;
    background:
      radial-gradient(120% 80% at 50% -18%, #fff 0 35%, transparent 36%),
      var(--login-page);
  }

  .login-hero {
    width: 100%;
    min-height: auto;
    display: block;
    padding: 16px 14px 10px;
  }

  .login-visual {
    display: none;
  }

  .login-panel {
    width: min(400px, 100%);
    margin: 0 auto;
    padding: 16px 14px 10px;
    border-radius: 18px;
    border-color: transparent;
    box-shadow: none;
    background: transparent;
  }

  .login-panel-logo {
    width: 96px;
    height: 96px;
    margin-bottom: 8px;
  }

  .login-panel h1 {
    margin-bottom: 16px;
    font-size: clamp(30px, 9vw, 40px);
    line-height: 1.18;
  }

  .login-form {
    gap: 12px;
  }

  .login-form label > span:first-child,
  .reset-panel label > span:first-child {
    display: none;
  }

  .login-form input,
  .reset-panel input {
    min-height: 52px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fff;
    font-size: 18px;
  }

  .login-submit {
    min-height: 52px;
    font-size: 20px;
  }

  .login-links {
    margin-top: 12px;
    font-size: 17px;
  }

  .login-footer {
    width: calc(100% - 32px);
    margin: 20px auto 0;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
    border-radius: 18px;
    font-size: 18px;
  }

  .login-footer img {
    width: 112px;
    height: 112px;
  }

  .login-mobile-nav {
    position: fixed;
    z-index: 20;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 64px;
    border-top: 1px solid var(--login-line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -10px 26px rgba(18, 42, 27, 0.08);
  }

  .login-mobile-nav a {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    color: #25362b;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.25;
  }

  .login-mobile-nav a.active {
    color: var(--login-brand);
    font-weight: 700;
  }
}

@media (max-width: 460px) {
  .login-brand span {
    display: none;
  }

  .login-site-header {
    padding-inline: 14px;
  }

  .login-panel {
    padding-inline: 6px;
  }

  .login-links {
    font-size: 16px;
  }
}

/* Compact operational login layout */
body.rd-user-login-page {
  overflow-x: hidden;
}

.login-site-header {
  min-height: 60px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding-block: 6px;
}

.login-nav {
  display: none;
}

.login-main {
  min-height: calc(100vh - 60px);
  display: grid;
  place-items: center;
  padding: 18px 0;
  background:
    radial-gradient(70% 52% at 50% 0%, #f7fff8 0, rgba(247, 255, 248, 0) 72%),
    var(--login-page);
}

.login-hero {
  width: min(420px, calc(100% - 28px));
  min-height: 0;
  display: block;
  padding: 0;
}

.login-visual,
.login-footer {
  display: none !important;
}

.login-panel {
  width: 100%;
  padding: 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  border-color: #c9ead4;
  box-shadow: 0 14px 34px rgba(5, 88, 42, 0.12);
}

.login-panel-logo {
  width: 74px;
  height: 74px;
  margin-bottom: 8px;
}

.login-panel h1 {
  margin-bottom: 16px;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.25;
}

.login-form,
.reset-panel {
  gap: 11px;
}

.login-form input,
.reset-panel input {
  min-height: 48px;
  border-radius: 9px;
}

.login-submit {
  min-height: 48px;
}

.login-status {
  min-height: 16px;
}

@media (max-width: 900px) {
  body.rd-user-login-page {
    padding-bottom: 0;
  }

  .login-site-header {
    min-height: 62px;
    padding: 7px 14px;
  }

  .login-brand img {
    width: 46px;
    height: 46px;
  }

  .login-main {
    min-height: calc(100vh - 62px);
    padding: 14px 0;
  }

  .login-hero {
    width: min(380px, calc(100% - 24px));
  }

  .login-panel {
    padding: 20px 16px 16px;
    border-color: #c9ead4;
    background: #fff;
    box-shadow: 0 14px 32px rgba(5, 88, 42, 0.12);
  }

  .login-panel-logo {
    width: 82px;
    height: 82px;
  }

  .login-panel h1 {
    margin-bottom: 14px;
    font-size: clamp(28px, 8vw, 36px);
  }

  .login-form label > span:first-child,
  .reset-panel label > span:first-child {
    display: block;
  }

  .login-form input,
  .reset-panel input {
    min-height: 50px;
    font-size: 17px;
  }

  .login-submit {
    min-height: 50px;
    font-size: 18px;
  }

  .login-mobile-nav {
    display: none;
  }
}

/* Public login page: home-style top bar and footer card */
.public-login-layout .login-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: calc(100% - 38px);
  min-height: 62px;
  margin: 12px auto 0;
  padding: 7px 16px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-radius: 9px;
  background: #087c3b;
  box-shadow: 0 12px 28px rgba(8, 124, 59, 0.2);
}

.public-login-layout .login-brand {
  gap: 10px;
}

.public-login-layout .login-brand img {
  width: 58px;
  height: 42px;
}

.public-login-layout .login-brand span {
  color: #e8fff1;
  font-size: 18px;
  font-weight: 700;
}

.public-login-layout .login-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.public-login-layout .login-nav a,
.public-login-layout .login-header-actions a {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.public-login-layout .login-header-actions {
  display: flex;
  gap: 10px;
}

.public-login-layout .login-header-actions a {
  min-height: 38px;
  padding: 7px 16px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.public-login-layout .login-header-actions .solid {
  background: #07552a;
  color: #fff;
  border-color: #07552a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.public-login-layout .login-main {
  min-height: auto;
  display: block;
  padding: 34px 0 36px;
  background: var(--login-page);
}

.public-login-layout .login-hero {
  width: min(360px, calc(100% - 28px));
  margin-inline: auto;
}

.public-login-layout .login-footer {
  width: min(1120px, calc(100% - 120px));
  margin: 52px auto 0;
  padding: 36px 30px 28px;
  display: grid !important;
  grid-template-columns: 1.3fr 0.9fr 0.9fr;
  gap: 56px;
  border: 0;
  border-radius: 12px;
  background: #087c3b;
  color: #fff;
  box-shadow: 0 14px 34px rgba(8, 124, 59, 0.18);
}

.public-login-layout .login-footer section {
  min-width: 0;
}

.public-login-layout .login-footer img {
  width: 132px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 14px;
}

.public-login-layout .login-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 22px;
}

.public-login-layout .login-footer p,
.public-login-layout .login-footer a {
  color: rgba(255, 255, 255, 0.94);
  font-size: 16px;
  line-height: 1.75;
}

.public-login-layout .login-footer a {
  margin: 4px 0;
}

.public-login-layout .login-footer-copy {
  grid-column: 1 / -1;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
}

@media (max-width: 900px) {
  .public-login-layout .login-site-header {
    width: calc(100% - 24px);
    min-height: auto;
    grid-template-columns: 1fr auto;
    padding: 8px 24px 8px 22px;
  }

  .public-login-layout .login-nav,
  .public-login-layout .login-header-actions {
    display: none;
  }

  .public-login-layout .login-menu-btn {
    display: block;
  }

  .public-login-layout .login-brand span {
    display: inline;
    font-size: 17px;
  }

  .public-login-layout .login-main {
    padding: 20px 0 26px;
  }

  .public-login-layout .login-footer {
    width: calc(100% - 28px);
    margin-top: 38px;
    padding: 24px 20px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .public-login-layout .login-footer-copy {
    margin-top: 8px;
  }
}

.public-login-layout .login-panel {
  padding: 18px 20px 16px;
  border-radius: 14px;
}

.public-login-layout .login-panel-logo {
  width: 56px;
  height: 56px;
  margin-bottom: 5px;
}

.public-login-layout .login-panel h1 {
  margin-bottom: 10px;
  font-size: clamp(24px, 2.4vw, 28px);
}

.public-login-layout .login-form,
.public-login-layout .reset-panel {
  gap: 8px;
}

.public-login-layout .login-form input,
.public-login-layout .reset-panel input {
  min-height: 42px;
}

.public-login-layout .login-submit {
  min-height: 42px;
}

.public-login-layout .login-links {
  margin-top: 8px;
  font-size: 14px;
}

@media (max-width: 900px) {
  .public-login-layout .login-panel {
    padding: 17px 16px 15px;
  }

  .public-login-layout .login-panel-logo {
    width: 62px;
    height: 62px;
  }

  .public-login-layout .login-panel h1 {
    font-size: clamp(26px, 7vw, 32px);
  }
}

@media (min-width: 901px) {
  .public-login-layout .login-site-header {
    width: 100%;
    min-height: 62px;
    margin: 0;
    padding: 8px 70px;
    border-radius: 0;
  }

  .public-login-layout .login-main {
    padding: 0 0 46px;
    background:
      linear-gradient(180deg, #ffffff 0 46%, var(--login-page) 46% 100%);
  }

  .public-login-layout .login-hero {
    width: min(1080px, calc(100% - 72px));
    min-height: calc(100vh - 62px);
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(340px, 390px);
    align-items: center;
    gap: clamp(56px, 8vw, 104px);
    margin: 0 auto;
    padding: 0;
  }

  .public-login-layout .login-visual {
    min-height: auto;
    display: grid !important;
    place-items: center;
  }

  .public-login-layout .login-device {
    width: min(390px, 92%);
    border-width: 8px;
    border-radius: 34px;
  }

  .public-login-layout .login-device-screen {
    inset: 46px 24px 30px;
  }

  .public-login-layout .login-lock {
    width: 64px;
    height: 64px;
    right: -18px;
    bottom: 42px;
  }

  .public-login-layout .login-panel {
    padding: 24px 24px 22px;
    border-radius: 14px;
  }

  .public-login-layout .login-panel-logo {
    width: 64px;
    height: 64px;
  }

  .public-login-layout .login-panel h1 {
    margin-bottom: 14px;
    font-size: 34px;
  }

  .public-login-layout .login-form input {
    min-height: 46px;
  }

  .public-login-layout .login-submit {
    min-height: 46px;
  }

  .public-login-layout .login-footer {
    margin-top: 0;
    margin-bottom: 36px;
  }
}

@media (max-width: 900px) {
  .public-login-layout {
    overflow-x: hidden;
    padding-bottom: 68px;
  }

  .public-login-layout .login-site-header {
    width: 100%;
    min-height: 58px;
    margin: 0;
    padding: 6px 12px;
    border-radius: 0;
  }

  .public-login-layout .login-brand {
    gap: 8px;
  }

  .public-login-layout .login-brand img {
    width: 44px;
    height: 44px;
  }

  .public-login-layout .login-brand span {
    display: inline;
    font-size: 16px;
  }

  .public-login-layout .login-menu-btn {
    width: 42px;
    height: 42px;
    padding: 10px;
  }

  .public-login-layout .login-menu-btn span {
    height: 2px;
    margin: 5px 0;
    transition: transform 0.22s ease, opacity 0.18s ease;
  }

  .public-login-layout .login-menu-btn.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .public-login-layout .login-menu-btn.is-open span:nth-child(2) {
    opacity: 0;
  }

  .public-login-layout .login-menu-btn.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .public-login-layout .login-main {
    padding: 14px 0 22px;
  }

  .public-login-layout .login-hero {
    width: min(360px, calc(100% - 24px));
  }

  .public-login-layout .login-panel {
    padding: 16px 16px 14px;
    border-radius: 14px;
  }

  .public-login-layout .login-panel-logo {
    width: 58px;
    height: 58px;
    margin-bottom: 4px;
  }

  .public-login-layout .login-panel h1 {
    margin-bottom: 10px;
    font-size: clamp(28px, 7.6vw, 34px);
    line-height: 1.24;
  }

  .public-login-layout .login-form,
  .public-login-layout .reset-panel {
    gap: 8px;
  }

  .public-login-layout .login-form label,
  .public-login-layout .reset-panel label {
    gap: 3px;
    font-size: 13px;
    line-height: 1.4;
  }

  .public-login-layout .login-form input,
  .public-login-layout .reset-panel input {
    min-height: 44px;
    padding: 9px 12px;
    font-size: 15px;
    line-height: 1.4;
  }

  .public-login-layout .password-field input {
    padding-right: 44px;
  }

  .public-login-layout .password-field button {
    right: 8px;
    width: 32px;
    height: 32px;
  }

  .public-login-layout .login-submit {
    min-height: 44px;
    font-size: 16px;
  }

  .public-login-layout .login-links {
    margin-top: 8px;
    gap: 12px;
    font-size: 14px;
    line-height: 1.45;
  }

  .public-login-layout .login-footer {
    width: calc(100% - 28px);
    margin-top: 22px;
    padding: 20px 16px;
    gap: 14px;
    border-radius: 10px;
  }

  .public-login-layout .login-footer img {
    width: 112px;
    height: 48px;
    margin-bottom: 8px;
  }

  .public-login-layout .login-footer h2 {
    margin-bottom: 8px;
    font-size: 18px;
  }

  .public-login-layout .login-footer p,
  .public-login-layout .login-footer a {
    font-size: 14px;
    line-height: 1.6;
  }

  .public-login-layout .public-mobile-menu {
    position: fixed;
    inset: 58px 0 0;
    z-index: 45;
    display: block;
    background: rgba(3, 36, 18, 0.36);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }

  .public-login-layout .public-mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .public-login-layout .public-mobile-menu-panel {
    width: min(310px, 84vw);
    height: 100%;
    padding: 20px 18px 22px;
    display: grid;
    align-content: start;
    gap: 18px;
    background: #087c3b;
    color: #fff;
    box-shadow: 18px 0 34px rgba(5, 88, 42, 0.22);
    transform: translateX(-105%);
    transition: transform 0.26s ease;
  }

  .public-login-layout .public-mobile-menu.is-open .public-mobile-menu-panel {
    transform: translateX(0);
  }

  .public-login-layout .public-mobile-menu-links {
    display: grid;
    gap: 8px;
  }

  .public-login-layout .public-mobile-menu-links a {
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
  }

  .public-login-layout .public-mobile-menu-links a:hover,
  .public-login-layout .public-mobile-menu-links a:focus-visible {
    background: rgba(255, 255, 255, 0.12);
  }

  .public-login-layout .public-mobile-menu-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }

  .public-login-layout .public-mobile-menu-actions a {
    min-height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #07552a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
  }

  .public-login-layout.public-menu-open {
    overflow: hidden;
  }

  .public-login-layout .login-mobile-nav {
    position: fixed;
    z-index: 50;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 64px;
    border-top: 1px solid var(--login-line);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -10px 26px rgba(18, 42, 27, 0.08);
  }

  .public-login-layout .login-mobile-nav a {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    color: #25362b;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.25;
  }

  .public-login-layout .login-mobile-nav a.active {
    color: var(--login-brand);
    font-weight: 800;
  }
}

@media (max-width: 900px) {
  .public-login-layout {
    --auth-mobile-header-height: 86px;
  }

  .public-login-layout.auth-header-scrolled {
    --auth-mobile-header-height: 86px;
  }

  .public-login-layout .login-site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    width: 100%;
    height: var(--auth-mobile-header-height);
    min-height: var(--auth-mobile-header-height);
    margin: 0;
    padding: 8px 24px 8px 22px;
    border-radius: 0;
    background: var(--login-brand);
    box-shadow: 0 8px 18px rgba(7, 83, 35, 0.18);
    isolation: isolate;
    transition: top 0.28s ease, left 0.28s ease, right 0.28s ease, width 0.28s ease, height 0.28s ease, min-height 0.28s ease, padding 0.28s ease, border-radius 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
  }

  .public-login-layout .login-site-header.scrolled {
    top: 8px;
    left: 12px;
    right: 12px;
    width: calc(100% - 24px);
    height: 70px;
    min-height: 70px;
    padding: 0 12px 0 10px;
    border-radius: 9px;
    background: var(--login-brand);
    box-shadow: 0 10px 24px rgba(7, 83, 35, 0.2);
  }

  .public-login-layout .login-site-header::before {
    display: none;
  }

  .public-login-layout .login-site-header.scrolled::before {
    display: none;
  }

  .public-login-layout .login-brand,
  .public-login-layout .login-menu-btn {
    position: relative;
    z-index: 1;
  }

  .public-login-layout .login-brand img {
    width: 210px;
    height: 54px;
    transition: width 0.28s ease, height 0.28s ease;
  }

  .public-login-layout .login-site-header.scrolled .login-brand img {
    width: 210px;
    height: 54px;
  }

  .public-login-layout .login-brand span {
    display: none;
  }

  .public-login-layout .login-menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 34px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .public-login-layout .login-menu-btn span {
    display: block;
    width: 28px;
    height: 2px;
    margin: 0;
    border-radius: 999px;
    background: #fff;
  }

  .public-login-layout .login-main {
    margin-top: 86px;
  }

  .public-login-layout .public-mobile-menu {
    inset: var(--auth-mobile-header-height) 0 0;
    transition: opacity 0.22s ease, inset 0.28s ease;
  }
}

/* The Android app owns navigation when it injects rd-native-app. */
@media (max-width: 900px) {
  html.rd-native-app body.public-login-layout,
  body.public-login-layout.rd-native-app {
    padding-bottom: 0 !important;
  }

  html.rd-native-app .login-mobile-nav,
  body.rd-native-app .login-mobile-nav {
    display: none !important;
  }
}
