html {
  min-height: 100%;
  height: 100%;
}

body.auth-page {
  --auth-green: #047857;
  --auth-green-dark: #064e3b;
  --auth-green-mid: #1f9d55;
  --auth-green-light: #72e18a;
  --auth-panel: #f6fbf8;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, #e5f9e8 0%, #b8f0c4 50%, #43c768 100%);
  color: #f8fafc;
  font-family: Rubik, Arial, sans-serif;
  letter-spacing: 0;
}

body.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
}

.auth-page a {
  color: var(--auth-green);
  transition: color 160ms ease, opacity 160ms ease;
}

.auth-page a:hover,
.auth-page a:focus {
  color: var(--auth-green-dark);
  text-decoration: none;
}

.auth-page .page-wraper,
.auth-page .account-form {
  min-height: 100vh;
  height: 100%;
}

.auth-page .account-form {
  display: grid;
  grid-template-columns: minmax(360px, 44vw) minmax(360px, 1fr);
  align-items: stretch;
  background: transparent;
}

.auth-page .account-heads {
  position: relative;
  align-self: stretch;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 100vh;
  padding: clamp(18px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #43c768;
  background-image: none !important;
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.auth-page .account-heads::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(114, 225, 138, 0.30), rgba(20, 83, 45, 0.35)),
    url("../../../assets/images/k.png") center / 78% auto no-repeat;
  opacity: 0.98;
}

.auth-page .account-heads::after {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 0;
  border: 1px solid rgba(209, 250, 229, 0.22);
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.12);
}

.auth-visual-copy {
  position: relative;
  z-index: 1;
  max-width: 520px;
  width: min(100%, 520px);
  text-align: center;
}

.auth-logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(209, 250, 229, 0.22);
  border-radius: 8px;
  background: rgba(4, 30, 24, 0.46);
  backdrop-filter: blur(10px);
  text-align: left;
}

.auth-logo-lockup img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  padding: 6px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
}

.auth-logo-lockup span {
  display: block;
  color: rgba(248, 250, 252, 0.72);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.auth-logo-lockup strong {
  display: block;
  color: #fff;
  font-size: 19px;
  line-height: 1.2;
}

.auth-visual-copy h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1;
  font-weight: 800;
}

.auth-visual-copy p {
  max-width: 460px;
  margin: 0 auto 16px;
  color: rgba(248, 250, 252, 0.78);
  font-size: 14px;
  line-height: 1.6;
}

.auth-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 520px;
  margin: 0 auto;
}

.auth-proof {
  min-height: 64px;
  padding: 10px;
  border: 1px solid rgba(167, 243, 208, 0.22);
  background: rgba(4, 30, 24, 0.58);
  backdrop-filter: blur(12px);
}

.auth-proof i {
  color: #5eead4;
  font-size: 18px;
}

.auth-proof:nth-child(2) i {
  color: #f59e0b;
}

.auth-proof:nth-child(3) i {
  color: #38bdf8;
}

.auth-proof strong {
  display: block;
  margin-top: 5px;
  color: #f8fafc;
  font-size: 13px;
}

.auth-proof span {
  color: rgba(226, 232, 240, 0.68);
  font-size: 12px;
}

.auth-page .account-form-inner {
  min-height: 100vh;
  padding: clamp(16px, 3vw, 36px);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(250, 255, 251, 0.98), rgba(232, 246, 236, 0.96) 62%, rgba(67, 199, 104, 0.18));
}

.auth-page .account-container,
.auth-recovery-card {
  width: min(100%, 470px);
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(4, 47, 46, 0.2);
  color: #0f172a;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: #047857;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.auth-page .heading-bx {
  margin-bottom: 14px;
}

.auth-page .title-head,
.auth-recovery-title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(24px, 3.5vw, 32px);
  line-height: 1.08;
  font-weight: 800;
}

.auth-card-copy,
.auth-recovery-copy {
  margin: 6px 0 0;
  color: #475569;
  line-height: 1.6;
}

.auth-page .contact-bx {
  margin-top: 14px;
}

.auth-page .form-group {
  position: relative;
  margin-bottom: 12px;
}

.auth-page label,
.auth-recovery-card label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  color: #16342d;
  font-size: 13px;
  font-weight: 700;
}

.auth-page .form-control,
.auth-recovery-card .form-control {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f6fbf8;
  color: #0f172a;
  font-size: 15px;
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.auth-page .form-control:focus,
.auth-recovery-card .form-control:focus {
  border-color: var(--auth-green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.14);
}

.auth-page .form-control:-webkit-autofill,
.auth-page .form-control:-webkit-autofill:hover,
.auth-page .form-control:-webkit-autofill:focus,
.auth-recovery-card .form-control:-webkit-autofill,
.auth-recovery-card .form-control:-webkit-autofill:hover,
.auth-recovery-card .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: #0f172a;
  box-shadow: 0 0 0 1000px #f6fbf8 inset;
  transition: background-color 9999s ease-out;
}

.auth-field-password .form-control {
  padding-right: 54px;
}

.auth-eye {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0f766e;
  cursor: pointer;
}

.auth-eye:hover,
.auth-eye:focus {
  background: rgba(13, 148, 136, 0.1);
  color: #064e3b;
  outline: none;
}

.auth-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 38px;
  height: 38px;
  padding: 0;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #0f766e;
  cursor: pointer;
  box-shadow: none;
}

.auth-password-field {
  padding-right: 58px !important;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus {
  background: rgba(13, 148, 136, 0.1);
  color: #064e3b;
  outline: none;
}

.auth-password-toggle i {
  font-size: 18px;
  line-height: 1;
}

.auth-page .form-forget {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 0;
  font-size: 13px;
}

.auth-page .ml-auto {
  margin-left: 0;
  color: #047857;
}

.auth-page .btn.btn-block,
.auth-recovery-card .button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: #047857;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 30px rgba(4, 120, 87, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.auth-page .btn.btn-block:hover,
.auth-page .btn.btn-block:focus,
.auth-recovery-card .button:hover,
.auth-recovery-card .button:focus {
  background: #065f46;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(4, 120, 87, 0.34);
}

.auth-secondary-row,
.auth-home-link,
.auth-recovery-back {
  color: #475569;
  font-size: 13px;
  text-align: center;
}

.auth-secondary-row {
  margin-top: 10px;
}

.auth-home-link {
  margin-top: 10px;
}

.auth-assurance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.auth-assurance span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(15, 118, 110, 0.13);
  border-radius: 8px;
  background: #f0fdfa;
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
}

.auth-recovery-page {
  display: block;
  padding: 0;
}

.auth-recovery-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 44vw) minmax(0, 1fr);
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.auth-recovery-visual {
  position: relative;
  padding: clamp(28px, 5vw, 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(114, 225, 138, 0.30), rgba(20, 83, 45, 0.35)),
    url("../../../assets/images/k.png") center / 78% auto no-repeat;
}

.auth-recovery-visual-content {
  color: #fff;
  max-width: 520px;
  width: min(100%, 520px);
  text-align: center;
}

.auth-recovery-visual-content img {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.auth-recovery-visual .auth-logo-lockup {
  margin-bottom: 24px;
}

.auth-recovery-visual .auth-logo-lockup img {
  margin: 0;
}

.auth-recovery-visual-content h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  font-weight: 800;
}

.auth-recovery-visual-content p {
  margin: 0 auto;
  max-width: 360px;
  color: rgba(248, 250, 252, 0.78);
  line-height: 1.7;
}

.auth-recovery-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  justify-content: center;
}

.auth-recovery-badges span {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(209, 250, 229, 0.28);
  border-radius: 8px;
  background: rgba(4, 30, 24, 0.58);
  color: #a7f3d0;
}

.auth-recovery-badges span::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 10;
  width: max-content;
  max-width: 180px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #10251b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.auth-recovery-badges span:hover::after,
.auth-recovery-badges span:focus::after,
.auth-recovery-badges span:focus-within::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.auth-recovery-panel {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 56px);
  background:
    linear-gradient(180deg, rgba(250, 255, 251, 0.98), rgba(232, 246, 236, 0.96) 62%, rgba(67, 199, 104, 0.18));
}

.auth-recovery-card {
  width: min(100%, 460px);
  box-sizing: border-box;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 60px rgba(4, 47, 46, 0.16);
}

.auth-recovery-card .alert {
  border-radius: 8px;
}

.auth-recovery-back {
  margin-top: 16px;
}

.auth-code-page .auth-recovery-shell {
  width: 100%;
  min-height: 100vh;
}

.auth-code-card .auth-kicker {
  margin-bottom: 12px;
}

.auth-otp-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(42px, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.auth-code-card .otp-box {
  width: 100%;
  height: 56px;
  margin: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

.auth-code-card .otp-box:focus {
  border-color: #10b981;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
  outline: none;
  transform: translateY(-1px);
}

.auth-code-card .alert {
  margin-top: 18px;
  padding: 12px 14px;
  text-align: left;
}

body.auth-page .modal {
  width: 100%;
}

body.auth-page .modal-content {
  border-radius: 8px;
  color: #0f172a;
}

@media (max-width: 991px) {
  .auth-page .account-form,
  .auth-recovery-shell {
    grid-template-columns: 1fr;
  }

  .auth-page .account-heads {
    height: auto;
    min-height: 320px;
    padding: 28px;
    align-items: flex-end;
  }

  .auth-page .account-form-inner {
    min-height: auto;
    padding: 28px;
  }

  .auth-proof-row {
    grid-template-columns: 1fr;
  }

  .auth-recovery-visual {
    min-height: 280px;
  }
}

@media (max-width: 575px) {
  body.auth-page {
    background-attachment: scroll;
  }

  .auth-page .account-heads {
    min-height: 250px;
    padding: 22px;
  }

  .auth-page .account-form-inner,
  .auth-recovery-page,
  .auth-recovery-panel {
    padding: 18px;
  }

  .auth-page .account-container {
    padding: 24px 18px;
  }

  .auth-page .form-forget,
  .auth-assurance {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-logo-lockup {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .auth-logo-lockup img {
    width: 84px;
    height: 84px;
  }

  .auth-otp-grid {
    grid-template-columns: repeat(3, minmax(52px, 1fr));
  }
}
