.password-strength-meter {
  margin-top: 0.55rem;
  border-radius: 999px;
  background: #eef4ff;
  color: #0b2550;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
}

.password-strength-meter[data-strength="0"]:empty {
  display: none;
}

.password-strength-meter[data-strength="0"],
.password-strength-meter[data-strength="1"],
.password-strength-meter[data-strength="2"] {
  background: #fff1f1;
  color: #9b1c1c;
}

.password-strength-meter[data-strength="3"] {
  background: #fff8db;
  color: #765600;
}

.password-strength-meter[data-strength="4"] {
  background: #e9f8ee;
  color: #17633a;
}

.password-strength-meter[data-strength="5"] {
  background: #dff7ea;
  color: #0f5132;
}

.crm-recovery-body {
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f2f6fc;
  color: #0b1b34;
}

.crm-recovery-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: min(680px, calc(100vh - 32px));
  margin: 16px auto;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 460px);
  border: 1px solid #d8e3f2;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 55px rgba(18, 48, 89, 0.14);
}

.crm-recovery-body .crm-login-hero {
  position: relative;
  padding: 56px;
  background: linear-gradient(145deg, #071b34 0%, #0c315c 100%);
}

.crm-recovery-brand {
  position: absolute;
  top: 30px;
  left: 42px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.crm-recovery-brand img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.crm-recovery-body .crm-login-hero h1 {
  max-width: 620px;
  color: #fff;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

.crm-recovery-body .crm-login-hero p {
  color: #c6d8ed;
  font-size: 15px;
}

.crm-recovery-body .crm-login-badge {
  color: #d8ebff;
  background: rgba(50, 126, 255, 0.2);
  border-color: rgba(139, 186, 255, 0.4);
}

.crm-recovery-panel {
  padding: 42px;
  background: #fff;
  border-left: 1px solid #e1e8f2;
  color: #0b1b34;
  backdrop-filter: none;
}

.crm-recovery-panel .crm-login-copy h2 {
  color: #0b1b34;
  font-size: 26px;
  letter-spacing: 0;
}

.crm-recovery-panel .crm-login-copy p,
.crm-recovery-panel .crm-link-muted {
  color: #60728c;
}

.crm-recovery-panel .crm-label {
  color: #152944;
}

.crm-recovery-panel .crm-input {
  min-height: 46px;
  border: 1px solid #cbd9ec;
  border-radius: 8px;
  background: #f8faff;
  color: #0b1b34;
  box-shadow: none;
}

.crm-recovery-panel .crm-input:focus {
  border-color: #327cff;
  box-shadow: 0 0 0 3px rgba(50, 124, 255, 0.14);
}

.crm-recovery-panel .crm-login-form {
  gap: 12px;
}

.crm-recovery-panel .crm-btn-primary {
  min-height: 48px;
  border-radius: 8px;
  background: #256cf5;
  color: #fff;
}

.crm-recovery-panel .crm-login-form > .crm-btn-block {
  display: inline-flex !important;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.crm-recovery-panel .crm-alert {
  border-radius: 8px;
}

@media (max-width: 820px) {
  .crm-recovery-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    grid-template-columns: 1fr;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .crm-recovery-body .crm-login-hero {
    min-height: 190px;
    padding: 74px 24px 24px;
    justify-content: flex-start;
  }

  .crm-recovery-brand {
    top: 22px;
    left: 24px;
  }

  .crm-recovery-body .crm-login-badge {
    margin-bottom: 12px;
  }

  .crm-recovery-body .crm-login-hero h1 {
    margin-bottom: 8px;
    font-size: 29px;
  }

  .crm-recovery-body .crm-login-hero p {
    font-size: 13px;
    line-height: 1.5;
  }

  .crm-recovery-panel {
    padding: 24px;
    border-left: 0;
    justify-content: flex-start;
  }

  .crm-recovery-panel .crm-login-copy h2 {
    font-size: 23px;
  }

  .crm-recovery-panel .crm-login-copy p {
    margin-bottom: 16px;
    font-size: 13px;
  }
}

.checkout-password-feedback {
  display: block;
  margin-top: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  background: #fff1f1;
  color: #9b1c1c;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
}

.checkout-password-feedback[hidden] {
  display: none !important;
}

.email-verification-code {
  display: grid;
  grid-template-columns: repeat(6, minmax(2.4rem, 1fr));
  gap: 0.5rem;
  max-width: 22rem;
}

.email-verification-code input {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
}

.email-verification-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(3, 13, 31, 0.72);
  backdrop-filter: blur(10px);
}

.email-verification-modal[hidden] {
  display: none;
}

.email-verification-card {
  position: relative;
  width: min(100%, 560px);
  border: 1px solid rgba(160, 190, 255, 0.5);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(2, 10, 28, 0.32);
  color: #061a3c;
  padding: clamp(1.4rem, 4vw, 2.2rem);
}

.email-verification-card h2 {
  margin: 0 0 0.6rem;
  color: #061a3c;
}

.email-verification-card p {
  color: #314560;
}

.email-verification-card form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.email-verification-card input[type="email"] {
  width: 100%;
  border: 1px solid #c9d9f5;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  color: #061a3c;
}

.email-verification-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  border-radius: 999px;
  width: 2.25rem;
  height: 2.25rem;
  background: #edf4ff;
  color: #061a3c;
  font-size: 1.4rem;
  font-weight: 800;
  cursor: pointer;
}

.email-verification-status {
  border-radius: 16px;
  background: #eef5ff;
  color: #0d3475;
  font-weight: 700;
  padding: 0.75rem 0.9rem;
}

.email-verification-status[data-kind="success"] {
  background: #e9f8ee;
  color: #17633a;
}

.email-verification-status[data-kind="error"] {
  background: #fff1f1;
  color: #9b1c1c;
}

.email-verification-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  color: #435670;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .email-verification-card {
    border-radius: 22px;
  }

  .email-verification-code {
    grid-template-columns: repeat(6, minmax(1.8rem, 1fr));
  }
}
