.gm-password-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -2px;
}

.gm-remember-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 650;
  user-select: none;
}

.gm-remember-email input {
  width: 16px;
  height: 16px;
  accent-color: #1d4ed8;
}

.gm-password-link {
  border: 0;
  background: transparent;
  color: #1d4ed8;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 760;
  padding: 6px 0;
}

.gm-password-link:hover {
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.gm-recovery-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(12px);
}

.gm-recovery-modal {
  width: min(460px, 100%);
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  color: #0f172a;
  box-shadow: 0 34px 86px rgba(2, 6, 23, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.gm-recovery-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 12px;
  border-bottom: 1px solid rgba(203, 213, 225, 0.74);
}

.gm-recovery-kicker {
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gm-recovery-title {
  margin: 5px 0 0;
  font-family: "Segoe UI Variable Display", "Aptos Display", "Segoe UI", sans-serif;
  font-size: 25px;
  font-weight: 780;
  letter-spacing: 0;
}

.gm-recovery-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: #eef2f7;
  color: #334155;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.gm-recovery-close:hover {
  background: #dbeafe;
  color: #0f172a;
}

.gm-recovery-body {
  display: grid;
  gap: 14px;
  padding: 18px 20px 20px;
}

.gm-recovery-text {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}

.gm-recovery-field {
  display: grid;
  gap: 7px;
}

.gm-recovery-field label {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gm-recovery-input {
  min-height: 48px;
  border: 1px solid #d7e2ec;
  border-radius: 15px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 15px;
  outline: none;
  padding: 0 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 10px 18px rgba(148, 163, 184, 0.08);
}

.gm-recovery-input:focus {
  border-color: rgba(59, 130, 246, 0.72);
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.1);
}

.gm-recovery-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.gm-recovery-button {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 780;
  padding: 0 17px;
}

.gm-recovery-button[data-variant="secondary"] {
  background: #e2e8f0;
  color: #334155;
}

.gm-recovery-button[data-variant="primary"] {
  background: linear-gradient(135deg, #081120 0%, #172554 64%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.18);
}

.gm-recovery-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.gm-recovery-alert {
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 15px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 13px;
  line-height: 1.5;
  padding: 11px 12px;
}

.gm-recovery-alert[data-tone="error"] {
  border-color: rgba(225, 29, 72, 0.22);
  background: #fff1f2;
  color: #9f1239;
}

.gm-recovery-devlink {
  word-break: break-all;
}

@media (max-width: 520px) {
  .gm-password-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .gm-recovery-actions {
    flex-direction: column-reverse;
  }

  .gm-recovery-button {
    width: 100%;
  }
}
